【问题标题】:send reaction on telegram channel post with python?用python在电报频道帖子上发送反应?
【发布时间】:2022-09-27 22:45:04
【问题描述】:

有什么方法可以用 python 向我的电报频道帖子发送反应 我检查了 tl.telethon.dev 上的 API 没有得到任何提示

提前致谢

    标签: python telegram telethon


    【解决方案1】:

    您可以在 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='❤️'
    ))
    

    【讨论】:

      猜你喜欢
      • 2018-02-08
      • 2017-07-31
      • 1970-01-01
      • 2023-01-09
      • 2017-07-23
      • 2022-10-08
      • 2021-06-11
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多