From 0759c8e08186b8b6ad81f738ae690b047c680312 Mon Sep 17 00:00:00 2001 From: _run Date: Sat, 26 Nov 2022 20:07:08 +0400 Subject: [PATCH 1/2] Update __init__.py --- telebot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/__init__.py b/telebot/__init__.py index f34bee7..6c0a73d 100644 --- a/telebot/__init__.py +++ b/telebot/__init__.py @@ -6311,7 +6311,6 @@ class TeleBot: return data = {} - params =[] handler_error = None skip_handlers = False @@ -6335,6 +6334,7 @@ class TeleBot: if handlers and not skip_handlers: try: for handler in handlers: + params = [] process_handler = self._test_message_handler(handler, message) if not process_handler: continue for i in inspect.signature(handler['function']).parameters: From 8d82b3d56b850e22cd8db023d5f9691134edac1f Mon Sep 17 00:00:00 2001 From: _run Date: Sat, 26 Nov 2022 20:08:00 +0400 Subject: [PATCH 2/2] Update async_telebot.py --- telebot/async_telebot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telebot/async_telebot.py b/telebot/async_telebot.py index 2a0acc7..1083a28 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -486,7 +486,6 @@ class AsyncTeleBot: handler_error = None data = {} skip_handlers = False - params = [] if middlewares: for middleware in middlewares: @@ -507,6 +506,7 @@ class AsyncTeleBot: if handlers and not(skip_handlers): try: for handler in handlers: + params = [] process_update = await self._test_message_handler(handler, message) if not process_update: continue for i in signature(handler['function']).parameters: