getUpdates method
Future<List<Update> >
getUpdates({
- int? timeout,
- int? offset,
- int? limit,
- List<
UpdateType> ? allowedUpdates,
inherited
Use this method to receive incoming updates using long polling.
An array of Update objects is returned.
Implementation
Future<List<Update>> getUpdates({
int? timeout,
int? offset,
int? limit,
List<UpdateType>? allowedUpdates,
}) {
return _client.apiCall(_token, 'getUpdates', {
'timeout': timeout,
'offset': offset,
'limit': limit,
'allowed_updates': allowedUpdates,
});
}