Skip to content

Commit

Permalink
Merge pull request #2380 from coder2020official/statesfix
Browse files Browse the repository at this point in the history
Fix states for webhooks
  • Loading branch information
coder2020official authored Aug 16, 2024
2 parents aff8f10 + b5f8fe8 commit b0466e3
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 b0466e3

Please sign in to comment.