There is a bot in the Telegram, with what query can I get a list of all the messages in a group or channel?

As I understand, requests of the form:

https://api.telegram.org/bot_token/getUpdates?chat_id=@chat

They allow you to get only updates, and how to get a complete list of posts using only the Bot API?

    2 answers 2

    This is not possible in the current implementation of the Bot API. However, you can try to do this using the Telegram API - the messages.getHistory method is suitable for the described task.

      For this bot you need to make the admin group. Accordingly, it will work only in normal groups. In supergroups and channels will not work. In supergroups exactly. For the admin bot come in standard notifications getUpdates all messages in the group.

      • one
        It seems that the question in question is about previously sent messages. And not about the private mode, which can be disabled in the settings of the bot; Private mode rules do not apply to admin bots regardless of the type of group and the activation of this mode in @BotFather. - mymedia