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

Update apihelper.py

This commit is contained in:
Aragroth 2020-07-02 17:50:14 +03:00 committed by GitHub
parent a69a358ebd
commit f83f69ed50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,8 +53,8 @@ def _make_request(token, method_name, method='get', params=None, files=None):
request_url = API_URL.format(token, method_name)
logger.debug("Request: method={0} url={1} params={2} files={3}".format(method, request_url, params, files))
read_timeout = READ_TIMEOUT + 70 * 2
connect_timeout = CONNECT_TIMEOUT + 70 * 2
read_timeout = READ_TIMEOUT
connect_timeout = CONNECT_TIMEOUT
if files and format_header_param:
fields.format_header_param = _no_encode(format_header_param)
if params: