Skip to content

Commit

Permalink
Merge pull request #1580 from e323w/master
Browse files Browse the repository at this point in the history
Fixed async long polling
  • Loading branch information
Badiboy authored Jun 15, 2022
2 parents a21ab20 + b266227 commit 7994a80
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions telebot/asyncio_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,11 @@ async def get_updates(token, offset=None, limit=None,
params = {}
if offset:
params['offset'] = offset
elif limit:
if limit:
params['limit'] = limit
elif timeout:
if timeout:
params['timeout'] = timeout
elif allowed_updates:
if allowed_updates:
params['allowed_updates'] = allowed_updates
return await _process_request(token, method_name, params=params, request_timeout=request_timeout)

Expand Down

0 comments on commit 7994a80

Please sign in to comment.