E
E
ElenaWeb2021-11-18 16:58:15
API
ElenaWeb, 2021-11-18 16:58:15

How to get messages from a chat without a bot?

Tell me how to receive messages from a chat in TG via api, provided that there is no bot in it, but the chat ID is known.

To receive messages from a chat where there is a bot, a request is used. https://api.telegram.org/bot/getUpdates?chat_id=-1...

The same request fails if there is no bot.

https://api.telegram.org/getUpdates?chat_id=-10013...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
shurshur, 2021-11-18
@shurshur

Not at all. You need to have a bot added to this chat and make a request strictly with the bot's token. Without a bot, using the Bot API will not work (which is very logical).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question