From 249670827c5e1d2b6b43389d80aa95955992d882 Mon Sep 17 00:00:00 2001 From: MiyukiKun <81800569+MiyukiKun@users.noreply.github.com> Date: Sat, 3 Jul 2021 01:12:57 +0530 Subject: [PATCH] Change manage_call permission to default to None (#3093) --- telethon/client/chats.py | 2 +- telethon/tl/custom/participantpermissions.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/telethon/client/chats.py b/telethon/client/chats.py index 1137544b..d712f698 100644 --- a/telethon/client/chats.py +++ b/telethon/client/chats.py @@ -829,7 +829,7 @@ class ChatMethods: invite_users: bool = None, pin_messages: bool = None, add_admins: bool = None, - manage_call: bool = True, + manage_call: bool = None, anonymous: bool = None, is_admin: bool = None, title: str = None) -> types.Updates: diff --git a/telethon/tl/custom/participantpermissions.py b/telethon/tl/custom/participantpermissions.py index 7053cda7..c59a05ed 100644 --- a/telethon/tl/custom/participantpermissions.py +++ b/telethon/tl/custom/participantpermissions.py @@ -129,3 +129,7 @@ class ParticipantPermissions: anonymous = property(**_admin_prop('anonymous', """ Whether the administrator will remain anonymous when sending messages. """)) + + manage_call = property(**_admin_prop('manage_call', """ + Whether the user will be able to manage group calls. + """))