【发布时间】:2022-09-27 22:45:04
【问题描述】:
有什么方法可以用 python 向我的电报频道帖子发送反应 我检查了 tl.telethon.dev 上的 API 没有得到任何提示
提前致谢
有什么方法可以用 python 向我的电报频道帖子发送反应 我检查了 tl.telethon.dev 上的 API 没有得到任何提示
提前致谢
您可以在 v1.25+ 中使用SendReactionRequest:
from telethon.sync import TelegramClient
from telethon import functions, types
result = await client(functions.messages.SendReactionRequest(
peer='username',
msg_id=42,
reaction='❤️'
))
【讨论】: