Struct tbot::methods::RestrictChatMember
source · pub struct RestrictChatMember<'a> { /* private fields */ }
Expand description
Restricts a chat member.
Reflects the restrictChatMember
method.
Implementations§
source§impl<'a> RestrictChatMember<'a>
impl<'a> RestrictChatMember<'a>
sourcepub const fn until_date(self, date: i64) -> Self
pub const fn until_date(self, date: i64) -> Self
Configures when the restrictions will be lifted.
Reflects the until_date
parameter.
source§impl RestrictChatMember<'_>
impl RestrictChatMember<'_>
sourcepub async fn call(self) -> Result<(), MethodCall>
pub async fn call(self) -> Result<(), MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for RestrictChatMember<'a>
impl<'a> Clone for RestrictChatMember<'a>
source§fn clone(&self) -> RestrictChatMember<'a>
fn clone(&self) -> RestrictChatMember<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more