T
T
Toster Guest2018-07-14 18:14:35
Telegram
Toster Guest, 2018-07-14 18:14:35

What is the correct way to use getUpdates?

How can I use the getUpdates method so that it only returns unread messages?
Like now:
{"ok": true, "result": [{...},{...}, {...}, {...}, {...}, {...} , {...}, {...}]}
(All messages read and unread here)
As I want:
{"ok": true, "result": [{...}, {...} ]}
(These two messages have not yet been read)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2018-07-14
@TosterGuest

Read messages sequentially and use the offset parameter

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question