0

I have in my contacts list a telegram bot which sends me messages. This bot is not mine.

I want to parse these messages from other bot in real-time. How I can do this? I want to do something like this:

while True:
  got_message =  check_updates()
  if (got_message==True):
    // do something with message
User Userov
  • 11
  • 1
  • 2

2 Answers2

0

If you are talking about using your own bot to parse messages from other bots, sorry the Telegram Bot API does not send you the updates of other bots.

But if you really want to manipulate with other bots' messages programmatically, you may want to try out Telethon logging in as yourself (yes your number) using the Telegram (not bot) API.

jeffffc
  • 772
  • 4
  • 13
0

you already received a good answer here. I would like to point out an hack to make more bots talk together: Using a channel. In channels bots can see other bots messages

91DarioDev
  • 1,612
  • 1
  • 14
  • 31