Rename can_send_messages to can_send_basic_messages.
This commit is contained in:
parent
040f0a954c
commit
12d04ec684
@ -604,7 +604,7 @@ inputChatPhotoSticker sticker:chatPhotoSticker = InputChatPhoto;
|
||||
|
||||
|
||||
//@description Describes actions that a user is allowed to take in a chat
|
||||
//@can_send_messages True, if the user can send text messages, contacts, invoices, locations, and venues
|
||||
//@can_send_basic_messages True, if the user can send text messages, contacts, invoices, locations, and venues
|
||||
//@can_send_audios True, if the user can send music files
|
||||
//@can_send_documents True, if the user can send documents
|
||||
//@can_send_photos True, if the user can send audio photos
|
||||
@ -618,7 +618,7 @@ inputChatPhotoSticker sticker:chatPhotoSticker = InputChatPhoto;
|
||||
//@can_invite_users True, if the user can invite new users to the chat
|
||||
//@can_pin_messages True, if the user can pin messages
|
||||
//@can_manage_topics True, if the user can manage topics
|
||||
chatPermissions can_send_messages:Bool can_send_audios:Bool can_send_documents:Bool can_send_photos:Bool can_send_videos:Bool can_send_video_notes:Bool can_send_voice_notes:Bool can_send_polls:Bool can_send_other_messages:Bool can_add_web_page_previews:Bool can_change_info:Bool can_invite_users:Bool can_pin_messages:Bool can_manage_topics:Bool = ChatPermissions;
|
||||
chatPermissions can_send_basic_messages:Bool can_send_audios:Bool can_send_documents:Bool can_send_photos:Bool can_send_videos:Bool can_send_video_notes:Bool can_send_voice_notes:Bool can_send_polls:Bool can_send_other_messages:Bool can_add_web_page_previews:Bool can_change_info:Bool can_invite_users:Bool can_pin_messages:Bool can_manage_topics:Bool = ChatPermissions;
|
||||
|
||||
//@description Describes rights of the administrator
|
||||
//@can_manage_chat True, if the administrator can get chat event log, get chat statistics, get message statistics in channels, get channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other privilege; applicable to supergroups and channels only
|
||||
|
@ -211,7 +211,7 @@ RestrictedRights::RestrictedRights(const td_api::object_ptr<td_api::chatPermissi
|
||||
}
|
||||
|
||||
*this = RestrictedRights(
|
||||
rights->can_send_messages_, rights->can_send_audios_, rights->can_send_documents_, rights->can_send_photos_,
|
||||
rights->can_send_basic_messages_, rights->can_send_audios_, rights->can_send_documents_, rights->can_send_photos_,
|
||||
rights->can_send_videos_, rights->can_send_video_notes_, rights->can_send_voice_notes_,
|
||||
rights->can_send_other_messages_, rights->can_send_other_messages_, rights->can_send_other_messages_,
|
||||
rights->can_send_other_messages_, rights->can_add_web_page_previews_, rights->can_send_polls_,
|
||||
|
Loading…
Reference in New Issue
Block a user