Why method:

https://api.telegram.org/botXXXXXXXXXX/getUpdates 

gives only:

 {"ok":true,"result":[]} 

?

Messages bot sent and he responded to them.

How to get a type issue:

 {"ok":true,"result":{"update_id":8393,"message":{"message_id":3,"from":{"id":7474,"first_name":"AAA"},"chat":{"id":,"title":""},"date":25497,"new_chat_participant":{"id":71,"first_name":"NAME","username":"YOUR_BOT_NAME"}}} 

    1 answer 1

    This method returns only new messages. If the bot has already responded to certain messages sent to it, then it has already received them (most likely by the same method) and they are marked as received by the Telegram server. Accordingly, with each new request they will not be returned anymore, otherwise you would receive the entire message history each time the bot was created. In this case, you have two options:

    For example: https://api.telegram.org/botXXXXXXXXXX/getUpdates?offset=-10

    • Is there a specific example of getting the Update object by its id ? using getUpdates method, passing update_id as the value of the offset parameter cannot do this - Anatol