mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-06 07:50:32 +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
|
||||
elif isinstance(obj, InlineQuery):
|
||||
chat_type = obj.chat_type
|
||||
elif isinstance(obj, ChatJoinRequest):
|
||||
chat_type = obj.chat.type
|
||||
else:
|
||||
warnings.warn("ChatTypeFilter doesn't support %s as input", type(obj))
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue