Long polling gives me the same updates again and again!
Telegram Bot SupportThe getUpdates method returns the earliest 100 unconfirmed updates. To confirm an update, use the offset parameter when calling getUpdates like this:
offset = update_id of last processed update + 1
All updates with update_id less than or equal to offset will be marked as confirmed on the server and will no longer be returned.
See also:
- I'm having problems with Webhooks
- How can I make sure that Webhook requests are coming from Telegram?
- How do I get updates?