1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Fixed async long polling

This commit is contained in:
e323w 2022-06-15 03:24:51 +04:00
parent a21ab203a1
commit b2662274f9

View File

@ -217,11 +217,11 @@ async def get_updates(token, offset=None, limit=None,
params = {} params = {}
if offset: if offset:
params['offset'] = offset params['offset'] = offset
elif limit: if limit:
params['limit'] = limit params['limit'] = limit
elif timeout: if timeout:
params['timeout'] = timeout params['timeout'] = timeout
elif allowed_updates: if allowed_updates:
params['allowed_updates'] = allowed_updates params['allowed_updates'] = allowed_updates
return await _process_request(token, method_name, params=params, request_timeout=request_timeout) return await _process_request(token, method_name, params=params, request_timeout=request_timeout)