Overcoded
Overcoded

Reputation: 49

Telegram, Texting From Bot to Bot

Is it possible to send message from a Telegram Bot to another Telegram Bot?

I got an error response when sending text to another bot either using @botname or directly botname as target id.

I'm sending a request by hitting url like this form api.telegram.org/mybottoken/… Im using .net to perform the operation.

The response is :

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.

Upvotes: 3

Views: 2299

Answers (1)

Overcoded
Overcoded

Reputation: 49

I found this as the answer to my question.

@nick Lee : No, it is not possible. A bot can only send messages to someone who has sent it messages. That means a bot can only talk to a human, but not another bot

From the documentation:

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.

Upvotes: 1

Related Questions