Skip to content

Commit

Permalink
Revert "Use deepcopy for sync"
Browse files Browse the repository at this point in the history
This reverts commit 2ae6b93.
  • Loading branch information
coder2020official committed Aug 11, 2024
1 parent 1bcb2a1 commit c79e63e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions telebot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
# random module to generate random string
import random
import string
import copy

import ssl

Expand Down Expand Up @@ -8750,7 +8749,7 @@ def _run_middlewares_and_handler(self, message, handlers, middlewares, update_ty
logger.error("It is not allowed to pass data and values inside data to the handler. Check your handler: {}".format(handler['function']))
return
else:
data_copy = copy.deepcopy(data)
data_copy = data.copy()
for key in list(data_copy):
# remove data from data_copy if handler does not accept it
if key not in params:
Expand Down

0 comments on commit c79e63e

Please sign in to comment.