【问题标题】:find where my message forwarded in telegram using python?使用python找到我在电报中转发的消息的位置?
【发布时间】:2021-08-23 10:49:08
【问题描述】:

有没有办法使用 python 中的 Telegram 库 找到我的消息在电报中转发的位置?

注意:我的频道消息

【问题讨论】:

    标签: python bots telegram telethon pyrogram


    【解决方案1】:

    没有办法知道邮件被转发到了哪里。任何可以看到您或您的频道消息的人都可以将它们转发到任何他们喜欢的地方。


    编辑更新:

    您可以使用GetMessagesPublicForwards 获取您的频道消息被转发到的其他公共频道中的消息列表。

    【讨论】:

    • 我们有可以做同样事情的机器人吗?
    【解决方案2】:

    你可以用pyrogram

    这样检查
    from pyrogram improt filters
    
    @app.on_message(filters.channel)
    def updates(_, message):
        if message.forward_date:
            print("This message forwarded")
    

    pyrorgamdocs

    【讨论】:

      猜你喜欢
      • 2021-09-14
      • 1970-01-01
      • 1970-01-01
      • 2018-03-27
      • 1970-01-01
      • 2021-04-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多