mirror of
https://github.com/eternnoir/pyTelegramBotAPI.git
synced 2023-08-10 21:12:57 +03:00
commit
a7587057bf
@ -69,8 +69,11 @@ def _make_request(token, method_name, method='get', params=None, files=None):
|
|||||||
if 'connect-timeout' in params:
|
if 'connect-timeout' in params:
|
||||||
connect_timeout = params.pop('connect-timeout') + 10
|
connect_timeout = params.pop('connect-timeout') + 10
|
||||||
if 'long_polling_timeout' in params:
|
if 'long_polling_timeout' in params:
|
||||||
# For getUpdates: the only function with timeout on the BOT API side
|
# For getUpdates
|
||||||
|
# The only function with timeout on the BOT API side
|
||||||
params['timeout'] = params.pop('long_polling_timeout')
|
params['timeout'] = params.pop('long_polling_timeout')
|
||||||
|
# Long polling hangs for given time. Read timeout should be greater that long_polling_timeout
|
||||||
|
read_timeout = max(params['timeout'] + 10, read_timeout)
|
||||||
|
|
||||||
|
|
||||||
result = None
|
result = None
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# Versions should comply with PEP440.
|
# Versions should comply with PEP440.
|
||||||
# This line is parsed in setup.py:
|
# This line is parsed in setup.py:
|
||||||
__version__ = '3.7.5.u2'
|
__version__ = '3.7.5.u3'
|
||||||
|
Loading…
Reference in New Issue
Block a user