Skip to content

Commit

Permalink
Fix states for webhooks
Browse files Browse the repository at this point in the history
  • Loading branch information
coder2020official committed Aug 16, 2024
1 parent aff8f10 commit b5f8fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion telebot/asyncio_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion telebot/custom_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b5f8fe8

Please sign in to comment.