mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
Update asyncio_helper.py
This commit is contained in:
parent
2f8d878f06
commit
da5084f53c
@ -70,7 +70,7 @@ async def _process_request(token, url, method='get', params=None, files=None, **
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
# exception was raised, so we know that this method is not getUpdates.
|
# exception was raised, so we know that this method is not getUpdates.
|
||||||
# let's check for timeout in params
|
# let's check for timeout in params
|
||||||
request_timeout = kwargs.pop('timeout', None)
|
request_timeout = params.pop('timeout', None)
|
||||||
# we will apply default request_timeout if there is no timeout in params
|
# we will apply default request_timeout if there is no timeout in params
|
||||||
# otherwise, we will use timeout parameter applied for payload.
|
# otherwise, we will use timeout parameter applied for payload.
|
||||||
request_timeout = REQUEST_TIMEOUT if request_timeout is None else request_timeout
|
request_timeout = REQUEST_TIMEOUT if request_timeout is None else request_timeout
|
||||||
|
Loading…
Reference in New Issue
Block a user