Struct tbot::methods::PromoteChatMember
source · pub struct PromoteChatMember<'a> { /* private fields */ }
Expand description
Promotes a chat member to an admin.
Reflects the promoteChatMember
method.
Implementations§
source§impl<'a> PromoteChatMember<'a>
impl<'a> PromoteChatMember<'a>
sourcepub const fn can_manage_chat(self, can_manage: bool) -> Self
pub const fn can_manage_chat(self, can_manage: bool) -> Self
Configures if the user will be able to perform administrative actions.
Reflects the can_manage_chat
parameter.
sourcepub const fn can_change_info(self, can_change: bool) -> Self
pub const fn can_change_info(self, can_change: bool) -> Self
Configures if the user will be able to change the group’s information.
Reflects the can_change_info
parameter.
sourcepub const fn can_post_messages(self, can_post: bool) -> Self
pub const fn can_post_messages(self, can_post: bool) -> Self
Configures if the user will be able to post messages, if the chat is
a channel. Reflects the can_post_messages
parameter.
sourcepub const fn can_edit_messages(self, can_edit: bool) -> Self
pub const fn can_edit_messages(self, can_edit: bool) -> Self
Configures if the user will be able to edit messages, if the chat is
a channel. Reflects the can_edit_messages
parameter.
sourcepub const fn can_delete_messages(self, can_delete: bool) -> Self
pub const fn can_delete_messages(self, can_delete: bool) -> Self
Configures if the user will be able to delete messages.
Reflects the can_delete_messages
parameter.
sourcepub const fn can_invite_users(self, can_invite: bool) -> Self
pub const fn can_invite_users(self, can_invite: bool) -> Self
Configures if the user will be able to invite new users.
Reflects the can_invite_users
parameter.
sourcepub const fn can_restrict_members(self, can_restrict: bool) -> Self
pub const fn can_restrict_members(self, can_restrict: bool) -> Self
Configures if the user will be able to restrict members.
Reflects the can_restrict_members
parameter.
sourcepub const fn can_pin_messages(self, can_pin: bool) -> Self
pub const fn can_pin_messages(self, can_pin: bool) -> Self
Configures if the user will be able to pin messages.
Reflects the can_pin_messages
parameter.
sourcepub const fn can_promote_members(self, can_promote: bool) -> Self
pub const fn can_promote_members(self, can_promote: bool) -> Self
Configures if the user will be able to promote other members.
Reflects the can_promote_members
parameter.
sourcepub const fn can_manage_voice_chats(self, can_manage: bool) -> Self
pub const fn can_manage_voice_chats(self, can_manage: bool) -> Self
Configures if the user will be able to manage voice chats.
Reflects the can_manage_voice_chats
parameter.
sourcepub const fn is_anonymous(self, is_anonymous: bool) -> Self
pub const fn is_anonymous(self, is_anonymous: bool) -> Self
Configures if the user will be anonymous.
Reflects the is_anonymous
parameter.
source§impl PromoteChatMember<'_>
impl PromoteChatMember<'_>
sourcepub async fn call(self) -> Result<(), MethodCall>
pub async fn call(self) -> Result<(), MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for PromoteChatMember<'a>
impl<'a> Clone for PromoteChatMember<'a>
source§fn clone(&self) -> PromoteChatMember<'a>
fn clone(&self) -> PromoteChatMember<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more