kroe
kroe

Reputation: 1126

How to read a message from a bot via telegram API?

I have a room with a couple of bots, one of them needs to read all the messages on the room including other bot's messages.

Telegram API says bots can't see other bots message otherwise they might get caught in a "loop".

Since i really need to work around this i'm wondering if there is a known workaround?

Upvotes: 0

Views: 2417

Answers (1)

Jun
Jun

Reputation: 2369

There cannot be any workaround using the Bot APIs since the messages in getUpdates or webhook of the Bot will be from Users alone.

One workaround could be to use the telegram-cli and create a normal user as a Bot.

Upvotes: 1

Related Questions