Home > OS >  Get last message from Telegram Chat (API)
Get last message from Telegram Chat (API)

Time:03-30

How to get the latest message from telegram GET request? The link doesn't work (404 Not Found).

https://api.telegram.org/botХХХ:ХХХ/getChatHistory?chat_id=-XXXXXX

CodePudding user response:

I found a solution. It's work:

https://api.telegram.org/botХХХХ:ХХХХХХ/getUpdates?offset=-1
  • Related