mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 16:15:51 +00:00
Dev 2.x chat_type filter fix (#1027)
* Added missing params to chat shortcut functions create_invite_link, edit_invite_link * Added missing ChatJoinRequest to check function of a ChatTypeFilter
This commit is contained in:
parent
98ae85110d
commit
87c0458d95
1 changed files with 2 additions and 0 deletions
|
|
@ -751,6 +751,8 @@ class ChatTypeFilter(BoundFilter):
|
||||||
chat_type = obj.chat.type
|
chat_type = obj.chat.type
|
||||||
elif isinstance(obj, InlineQuery):
|
elif isinstance(obj, InlineQuery):
|
||||||
chat_type = obj.chat_type
|
chat_type = obj.chat_type
|
||||||
|
elif isinstance(obj, ChatJoinRequest):
|
||||||
|
chat_type = obj.chat.type
|
||||||
else:
|
else:
|
||||||
warnings.warn("ChatTypeFilter doesn't support %s as input", type(obj))
|
warnings.warn("ChatTypeFilter doesn't support %s as input", type(obj))
|
||||||
return False
|
return False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue