Answer the question
In order to leave comments, you need to log in
How to make a bot hear another bot in a Telegram group?
I can't figure out how to make a bot hear another bot. I tried to force the first bot to speak commands so that the second one implements the necessary functions, I tried to "scan" the chat so that with the same "123" in the chat it performs some actions, but the second bot simply does not hear and does not react to the first.
If I manually enter the command myself or write "123" in the chat, then everything works. If the bot does this, then nothing happens.
Help and explain how the bot can open its eyes to the messages of the first bot? And is it even possible?
I use TelebotAPI in Python
Answer the question
In order to leave comments, you need to log in
Roman Burch shurshur
The only way to make a chat between two bots is a bunch of Channel + Discussion Group
Two bots are located there and there. Moreover, when the bot writes to the channel, then report it is duplicated in the group and another bot can already read this message. It's a huge crutch, but it still works.
The Telegram Bot API prevents bots from reading messages sent by other bots.
I'm forwarding the answer from the comments.
The problem is not in the library, the problem is in the API.
You can communicate with bots using the client API (look towards the telethon library).
If it works out, I'll let you know
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question