【问题标题】:python-telegram-bot 8 not seeing other bots messagespython-telegram-bot 8 没有看到其他机器人消息
【发布时间】:2017-09-23 13:56:24
【问题描述】:

我正在使用 python-telegram-bot 8,我的机器人不处理组中其他机器人发送的消息

与其他用户(不是机器人)一起正常工作

为什么我的机器人没有看到其他机器人消息?

def main():

    updater = Updater(bot_token)
    dp = updater.dispatcher

    dp.add_handler(MessageHandler(Filters.text,check_msg))
    dp.add_handler(MessageHandler(Filters.video | Filters.photo | Filters.document, check_file))
    dp.add_handler(MessageHandler(Filters.sticker, check_sticker))

【问题讨论】:

    标签: python-telegram-bot


    【解决方案1】:

    根据Bot FAQ,无论模式如何,机器人都无法看到来自其他机器人的消息。

    唯一的例外是频道,如果您的机器人是频道的管理员,他们可以看到任何消息。

    【讨论】:

    • 但我的机器人是管理员。抱歉,是群管理员,不是频道
    • @RobertoJunior 不幸的是,仍然看不到来自其他机器人的消息:(
    猜你喜欢
    • 1970-01-01
    • 2018-05-17
    • 2020-10-26
    • 2019-01-31
    • 2018-10-05
    • 2019-11-27
    • 2021-03-22
    • 2018-08-11
    • 2020-07-03
    相关资源
    最近更新 更多