From fbb9a73fc040b54845c87c281cd7521c9843ad25 Mon Sep 17 00:00:00 2001 From: _run Date: Wed, 29 Jun 2022 14:52:37 +0500 Subject: [PATCH] F###, forgot to put await --- 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 5c7f50c..dce9dec 100644 --- a/telebot/async_telebot.py +++ b/telebot/async_telebot.py @@ -322,7 +322,7 @@ class AsyncTeleBot: logger.error("You are passing more data than the handler needs. Check your handler: {}".format(handler['function'])) return - handler["function"](message, **data_copy) + await handler["function"](message, **data_copy) except Exception as e: handler_error = e