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

Merge pull request #1811 from coder2020official/continuehandling-fix

Continuehandling fix
This commit is contained in:
Badiboy 2022-11-27 11:30:37 +03:00 committed by GitHub
commit 7a20017dfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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: