mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Add to ChatMemberOwner new default fields (#645)
* new: add field type ConstField * new: add const fields for ChatMemberOwner * new: better typings for get_chat_administrators * new: add tests for chat owner fields * fix: Type typing for class * enh: alias is_chat_owner for is_chat_creator
This commit is contained in:
parent
7feb0cade0
commit
f6f2972a11
6 changed files with 59 additions and 13 deletions
|
|
@ -44,12 +44,21 @@ CHAT_MEMBER = {
|
|||
"user": USER,
|
||||
"status": "administrator",
|
||||
"can_be_edited": False,
|
||||
"can_manage_chat": True,
|
||||
"can_change_info": True,
|
||||
"can_delete_messages": True,
|
||||
"can_invite_users": True,
|
||||
"can_restrict_members": True,
|
||||
"can_pin_messages": True,
|
||||
"can_promote_members": False,
|
||||
"can_manage_voice_chats": True,
|
||||
"is_anonymous": False,
|
||||
}
|
||||
|
||||
CHAT_MEMBER_OWNER = {
|
||||
"user": USER,
|
||||
"status": "creator",
|
||||
"is_anonymous": False,
|
||||
}
|
||||
|
||||
CONTACT = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue