From 593a2bfb3e0d7a387cbdd187d463de702fe59d7f Mon Sep 17 00:00:00 2001 From: levlam Date: Tue, 8 Dec 2020 03:19:56 +0300 Subject: [PATCH] Improve administrator rights name. --- td/generate/scheme/td_api.tl | 12 ++++++------ td/generate/scheme/td_api.tlo | Bin 189724 -> 189728 bytes td/telegram/DialogParticipant.cpp | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/td/generate/scheme/td_api.tl b/td/generate/scheme/td_api.tl index 52f192282..271186011 100644 --- a/td/generate/scheme/td_api.tl +++ b/td/generate/scheme/td_api.tl @@ -462,9 +462,9 @@ chatMemberStatusCreator custom_title:string is_anonymous:Bool is_member:Bool = C //@can_restrict_members True, if the administrator can restrict, ban, or unban chat members //@can_pin_messages True, if the administrator can pin messages; applicable to groups only //@can_promote_members True, if the administrator can add new administrators with a subset of their own privileges or demote administrators that were directly or indirectly promoted by them -//@can_manage_calls True, if the administrator can manage group calls; applicable to supergroups only +//@can_manage_voice_chats True, if the administrator can manage voice chats; applicable to supergroups only //@is_anonymous True, if the administrator isn't shown in the chat member list and sends messages anonymously; applicable to supergroups only -chatMemberStatusAdministrator custom_title:string can_be_edited:Bool can_change_info:Bool can_post_messages:Bool can_edit_messages:Bool can_delete_messages:Bool can_invite_users:Bool can_restrict_members:Bool can_pin_messages:Bool can_promote_members:Bool can_manage_calls:Bool is_anonymous:Bool = ChatMemberStatus; +chatMemberStatusAdministrator custom_title:string can_be_edited:Bool can_change_info:Bool can_post_messages:Bool can_edit_messages:Bool can_delete_messages:Bool can_invite_users:Bool can_restrict_members:Bool can_pin_messages:Bool can_promote_members:Bool can_manage_voice_chats:Bool is_anonymous:Bool = ChatMemberStatus; //@description The user is a member of a chat, without any additional privileges or restrictions chatMemberStatusMember = ChatMemberStatus; @@ -4328,7 +4328,7 @@ sendCallRating call_id:int32 rating:int32 comment:string problems:vector = Ok; //@source Group call member's synchronization source identifier @is_speaking True, if the user is speaking setGroupCallMemberIsSpeaking group_call_id:int32 source:int32 is_speaking:Bool = Ok; -//@description Toggles whether a group call member is muted. Requires can_manage_calls rights to mute other group call members +//@description Toggles whether a group call member is muted. Requires can_manage_voice_chats rights to mute other group call members //@group_call_id Group call identifier @user_id User identifier @is_muted Pass true if the user must be muted and false otherwise toggleGroupCallMemberIsMuted group_call_id:int32 user_id:int32 is_muted:Bool = Ok; @@ -4359,7 +4359,7 @@ checkGroupCallIsJoined group_call_id:int32 = Ok; //@description Leaves a group call @group_call_id Group call identifier leaveGroupCall group_call_id:int32 = Ok; -//@description Discards a group call. Requires can_manage_calls rights in the corresponding chat @group_call_id Group call identifier +//@description Discards a group call. Requires can_manage_voice_chats rights in the corresponding chat @group_call_id Group call identifier discardGroupCall group_call_id:int32 = Ok; diff --git a/td/generate/scheme/td_api.tlo b/td/generate/scheme/td_api.tlo index 5ada68164aa7b54b0533cc70051fc18b3cd42842..5e96404980640b174ba562d2c85cbd3e15ef46ad 100644 GIT binary patch delta 334 zcmbPpihIE+?hQ9MSo;3$yuSGkhlw34h{Z5@=T`mAF76fzV2Q~M=?xIZh71L$0>)JN z$sQRgScEr!$&e9%sG5G0oymCmnHVO4$q|(@5VaMREh1n$7$D%P99N9MK6jzX0#yo} zAc>pDgnW1=*H-Fp&Zz2Oln_f!%!|)W%u7s9jW5g3OiqnY&PXgNW|-tJF_sk3fmR delta 334 zcmZ2*ihIr}?hQ9MSR_iXSZ=<CByr)(JqH0I24VcmVqjvj`TE-dXP*3xgnY5qW Z%DDaHRwjKes23+5U{csFdw_{q6#&is_anonymous_, st->custom_title_, true /*st->can_be_edited_*/, st->can_change_info_, st->can_post_messages_, st->can_edit_messages_, st->can_delete_messages_, st->can_invite_users_, - st->can_restrict_members_, st->can_pin_messages_, st->can_promote_members_, st->can_manage_calls_); + st->can_restrict_members_, st->can_pin_messages_, st->can_promote_members_, st->can_manage_voice_chats_); } case td_api::chatMemberStatusMember::ID: return DialogParticipantStatus::Member();