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:
parent
a21ab203a1
commit
b2662274f9
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user