电报,从机器人到机器人发短信

Telegram, Texting From Bot to Bot

是否可以将消息从 Telegram Bot 发送到另一个 Telegram Bot?

我在使用@botname 或直接将 botname 作为目标 ID 向另一个 bot 发送文本时收到错误响应。

我正在通过点击 url 来发送请求,就像这样 api.telegram.org/mybottoken/… 我正在使用 .net 来执行操作。

响应是:

System.Net.WebException: The remote server returned an error: (400) Bad Request. at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) Sending text to human user is fine with the code, but not with the Bot.

我发现这是我问题的答案。

: 不,这是不可能的。机器人只能向向它发送消息的人发送消息。这意味着一个机器人只能与人交谈,而不能与另一个机器人交谈

来自文档:

Why doesn't my bot see messages from other bots?

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.