From b2662274f93d09326cc1502d9c109a0cb665ae7d Mon Sep 17 00:00:00 2001 From: e323w <88164836+e323w@users.noreply.github.com> Date: Wed, 15 Jun 2022 03:24:51 +0400 Subject: [PATCH] Fixed async long polling --- telebot/asyncio_helper.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/telebot/asyncio_helper.py b/telebot/asyncio_helper.py index 63c1a532d..a7bcccfa3 100644 --- a/telebot/asyncio_helper.py +++ b/telebot/asyncio_helper.py @@ -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)