From b5f8fe8ea5583789ee6a91a8ecee28982d502a6b Mon Sep 17 00:00:00 2001 From: _run Date: Fri, 16 Aug 2024 10:49:40 +0500 Subject: [PATCH] Fix states for webhooks --- telebot/asyncio_filters.py | 2 +- telebot/custom_filters.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot/asyncio_filters.py b/telebot/asyncio_filters.py index 20abe5464..77c0559a6 100644 --- a/telebot/asyncio_filters.py +++ b/telebot/asyncio_filters.py @@ -398,7 +398,7 @@ async def check(self, message, text): :meta private: """ - chat_id, user_id, business_connection_id, bot_id, message_thread_id = resolve_context(message, self.bot._user.id) + chat_id, user_id, business_connection_id, bot_id, message_thread_id = resolve_context(message, self.bot.bot_id) if chat_id is None: chat_id = user_id # May change in future diff --git a/telebot/custom_filters.py b/telebot/custom_filters.py index 2e91e55ea..f56535a57 100644 --- a/telebot/custom_filters.py +++ b/telebot/custom_filters.py @@ -404,7 +404,7 @@ def check(self, message, text): :meta private: """ - chat_id, user_id, business_connection_id, bot_id, message_thread_id = resolve_context(message, self.bot._user.id) + chat_id, user_id, business_connection_id, bot_id, message_thread_id = resolve_context(message, self.bot.bot_id) if chat_id is None: chat_id = user_id # May change in future