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

Async allowed_updates fix

This commit is contained in:
Badiboy 2023-01-31 11:19:11 +03:00
parent df105ab1d8
commit f5eac56afa

View File

@ -243,8 +243,8 @@ async def get_updates(token, offset=None, limit=None,
params['limit'] = limit
if timeout:
params['timeout'] = timeout
if allowed_updates:
params['allowed_updates'] = allowed_updates
if allowed_updates is not None: # Empty lists should pass
params['allowed_updates'] = json.dumps(allowed_updates)
return await _process_request(token, method_name, params=params, request_timeout=request_timeout)
async def _check_result(method_name, result):