Get Updates Request
data class GetUpdatesRequest(offset: Long?, limit: Long?, timeout: Long?, allowed_updates: List<String>?) : TelegramRequest
Content copied to clipboard
Use this method to receive incoming updates using long polling (wiki). An Array of Update objects is returned.
Notes
1. This method will not work if an outgoing webhook is set up.
2. In order to avoid getting duplicate updates, recalculate offset after each server response.
Constructors
GetUpdatesRequest
Link copied to clipboard