Range-based interface for getUpdates
This is a preferred way to receive updates because it lazily adjusts offset and calls getUpdates when necessary, allowing you to get more than a 100 updates in a single call.
Timeout in seconds for long polling
List the types of updates you want your bot to receive
An InputRange of Update
TelegramBotException on errors
getUpdates
See Implementation
Range-based interface for getUpdates
This is a preferred way to receive updates because it lazily adjusts offset and calls getUpdates when necessary, allowing you to get more than a 100 updates in a single call.