From f4d978cd980dd593eca08481754fb0769022ef9c Mon Sep 17 00:00:00 2001 From: Aragroth <51192359+Aragroth@users.noreply.github.com> Date: Thu, 2 Jul 2020 17:51:34 +0300 Subject: [PATCH] Update apihelper.py --- telebot/apihelper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/apihelper.py b/telebot/apihelper.py index 07ae8f8..e7a3df5 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -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 - connect_timeout = CONNECT_TIMEOUT + read_timeout = READ_TIMEOUT + 70 * 2 + connect_timeout = CONNECT_TIMEOUT + 70 * 2 if files and format_header_param: fields.format_header_param = _no_encode(format_header_param) if params: