Async allowed_updates fix

This commit is contained in:
Badiboy 2023-01-31 11:19:11 +03:00
parent df105ab1d8
commit f5eac56afa
1 changed files with 2 additions and 2 deletions

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):