Skip to content

Commit b5f8fe8

Browse files
Fix states for webhooks
1 parent aff8f10 commit b5f8fe8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

telebot/asyncio_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ async def check(self, message, text):
398398
:meta private:
399399
"""
400400

401-
chat_id, user_id, business_connection_id, bot_id, message_thread_id = resolve_context(message, self.bot._user.id)
401+
chat_id, user_id, business_connection_id, bot_id, message_thread_id = resolve_context(message, self.bot.bot_id)
402402

403403
if chat_id is None:
404404
chat_id = user_id # May change in future

telebot/custom_filters.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def check(self, message, text):
404404
:meta private:
405405
"""
406406

407-
chat_id, user_id, business_connection_id, bot_id, message_thread_id = resolve_context(message, self.bot._user.id)
407+
chat_id, user_id, business_connection_id, bot_id, message_thread_id = resolve_context(message, self.bot.bot_id)
408408

409409
if chat_id is None:
410410
chat_id = user_id # May change in future

0 commit comments

Comments
 (0)