mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
add condition when call.message is none
This commit is contained in:
parent
d41074972f
commit
3fbf29e136
1 changed files with 1 additions and 1 deletions
|
|
@ -732,7 +732,7 @@ class ChatTypeFilter(BoundFilter):
|
|||
if isinstance(obj, Message):
|
||||
chat_type = obj.chat.type
|
||||
elif isinstance(obj, CallbackQuery):
|
||||
chat_type = obj.message.chat.type
|
||||
chat_type = obj.message.chat.type if obj.message else None
|
||||
elif isinstance(obj, ChatMemberUpdated):
|
||||
chat_type = obj.chat.type
|
||||
elif isinstance(obj, InlineQuery):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue