getUpdates method

Future<List<Update>> getUpdates({
  1. int? timeout,
  2. int? offset,
  3. int? limit,
  4. 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,
  });
}