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

Fixed a bug, made improvements in reload system

Didn't test that much, there is still some stuff to do
This commit is contained in:
coder2020official
2022-09-30 23:22:21 +04:00
parent d3080b6d4e
commit eb576d83fb
4 changed files with 72 additions and 43 deletions

View File

@@ -71,7 +71,7 @@ async def _process_request(token, url, method='get', params=None, files=None, **
else:
# let's check for timeout in params
request_timeout = params.pop('timeout', None)
request_timeout = params.pop('timeout', None) if params else None
# we will apply default request_timeout if there is no timeout in params
# otherwise, we will use timeout parameter applied for payload.