From 5471b88da6ad698a376d0356a2ec70cd6db44538 Mon Sep 17 00:00:00 2001 From: _run Date: Fri, 12 Aug 2022 19:25:46 +0500 Subject: [PATCH] Update apihelper.py --- telebot/apihelper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/telebot/apihelper.py b/telebot/apihelper.py index a3572c6..b4e89f7 100644 --- a/telebot/apihelper.py +++ b/telebot/apihelper.py @@ -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):