pub struct ChatMemberAdministrator {Show 20 fields
pub user: User,
pub can_be_edited: bool,
pub is_anonymous: bool,
pub can_manage_chat: bool,
pub can_delete_messages: bool,
pub can_manage_video_chats: bool,
pub can_restrict_members: bool,
pub can_promote_members: bool,
pub can_change_info: bool,
pub can_invite_users: bool,
pub can_post_messages: bool,
pub can_edit_messages: bool,
pub can_pin_messages: bool,
pub can_manage_topics: bool,
pub can_post_stories: bool,
pub can_edit_stories: bool,
pub can_delete_stories: bool,
pub can_manage_direct_messages: bool,
pub can_manage_tags: bool,
pub custom_title: Option<String>,
}Expand description
Chat administrator.
Fields§
§user: UserThe user.
can_be_edited: booltrue if the bot can edit this administrator’s privileges.
is_anonymous: booltrue if the admin’s identity is hidden.
can_manage_chat: boolAllows managing the chat.
can_delete_messages: boolAllows deleting messages of other users.
can_manage_video_chats: boolAllows managing video chats.
can_restrict_members: boolAllows restricting, banning, or unbanning members.
can_promote_members: boolAllows promoting or demoting administrators.
can_change_info: boolAllows changing the chat title, photo, and other settings.
can_invite_users: boolAllows inviting new users.
can_post_messages: boolAllows posting messages in channels.
can_edit_messages: boolAllows editing messages in channels.
can_pin_messages: boolAllows pinning messages.
can_manage_topics: boolAllows managing forum topics.
can_post_stories: boolAllows posting stories.
can_edit_stories: boolAllows editing stories.
can_delete_stories: boolAllows deleting stories.
can_manage_direct_messages: boolAllows managing direct messages and declining suggested posts; channels only.
Allows editing the tags of regular members; groups and supergroups only.
custom_title: Option<String>Custom title shown instead of “Administrator”.
Trait Implementations§
Source§impl Clone for ChatMemberAdministrator
impl Clone for ChatMemberAdministrator
Source§fn clone(&self) -> ChatMemberAdministrator
fn clone(&self) -> ChatMemberAdministrator
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more