1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00

Update __init__.py

This commit is contained in:
_run 2022-11-26 20:07:08 +04:00 committed by GitHub
parent deb2099396
commit 0759c8e081
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6311,7 +6311,6 @@ class TeleBot:
return return
data = {} data = {}
params =[]
handler_error = None handler_error = None
skip_handlers = False skip_handlers = False
@ -6335,6 +6334,7 @@ class TeleBot:
if handlers and not skip_handlers: if handlers and not skip_handlers:
try: try:
for handler in handlers: for handler in handlers:
params = []
process_handler = self._test_message_handler(handler, message) process_handler = self._test_message_handler(handler, message)
if not process_handler: continue if not process_handler: continue
for i in inspect.signature(handler['function']).parameters: for i in inspect.signature(handler['function']).parameters: