mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Added the field can_manage_topics
This commit is contained in:
parent
c802e2f27a
commit
e2cc8ef8c1
7 changed files with 22 additions and 3 deletions
|
|
@ -61,6 +61,7 @@ CHAT_MEMBER = {
|
|||
"can_promote_members": False,
|
||||
"can_manage_voice_chats": True, # Deprecated
|
||||
"can_manage_video_chats": True,
|
||||
"can_manage_topics": True,
|
||||
"is_anonymous": False,
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,9 @@ def test_privileges():
|
|||
assert isinstance(chat_member.can_promote_members, bool)
|
||||
assert chat_member.can_promote_members == CHAT_MEMBER['can_promote_members']
|
||||
|
||||
assert isinstance(chat_member.can_manage_topics, bool)
|
||||
assert chat_member.can_manage_topics == CHAT_MEMBER['can_manage_topics']
|
||||
|
||||
|
||||
def test_int():
|
||||
assert int(chat_member) == chat_member.user.id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue