第一个电报机器人没有响应另一个男孩发送的斜杠命令

First telegram bot not responding to a slah command sent by antoher bot

我有一个非常具体的设置。我在同一组中有一个机器人 A 和一个机器人 B。机器人 A 正在响应在该组中发送的斜杠命令“/mail”,其中包含有关此电子邮件的一些特定数据。当我从我的个人 Telegram 帐户使用此命令时,它工作得很好。

我正在尝试使用机器人 B 的这种现有行为。该机器人 B 正在使用 bot.sendMessage(chat_id=chat_id, text 向群组发送 /mail 命令="/邮件测试@gmail.com").此消息完美出现在群聊中

但是,机器人A似乎没有被触发,也从不发回数据。

为了将消息解释为命令,是否需要指定任何内容?这可能吗 ?有没有我错过的隐私设置?我试着玩弄我发现的所有东西,但我就是想不通为什么这不起作用。

我正在使用 python-telegram-bot 编写机器人 B。

谢谢

官方 Telegram 的常见问题页面说:

Bots talking to each other could potentially get stuck in unwelcome loops. To avoid this, we decided that bots will not be able to see messages from other bots regardless of mode.

https://core.telegram.org/bots/faq#why-doesn-39t-my-bot-see-messages-from-other-bots