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:
_run 2022-08-12 19:25:46 +05:00
parent 26db76f207
commit 5471b88da6

View File

@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
import copy
import time
from datetime import datetime
@ -90,7 +89,7 @@ def _make_request(token, method_name, method='get', params=None, files=None):
connect_timeout = CONNECT_TIMEOUT
if files:
files_copy = copy.deepcopy(files)
files_copy = dict(files)
# process types.InputFile
for key, value in files_copy.items():
if isinstance(value, types.InputFile):