mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Simplify some conditions
This commit is contained in:
parent
c446b28d8b
commit
b7bf18d0f0
1 changed files with 2 additions and 2 deletions
|
|
@ -87,8 +87,8 @@ class UserContextMiddleware(BaseMiddleware):
|
|||
user=event.callback_query.from_user,
|
||||
thread_id=(
|
||||
callback_query_message.message_thread_id
|
||||
if not isinstance(event.callback_query.message, InaccessibleMessage)
|
||||
and event.callback_query.message.is_topic_message
|
||||
if not isinstance(callback_query_message, InaccessibleMessage)
|
||||
and callback_query_message.is_topic_message
|
||||
else None
|
||||
),
|
||||
business_connection_id=callback_query_message.business_connection_id,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue