Struct telegram_bot::types::requests::UnbanChatMember
[−]
[src]
#[must_use = "requests do nothing unless sent"]pub struct UnbanChatMember { /* fields omitted */ }
Use this method to unban a previously kicked user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator in the group for this to work.
Methods
impl UnbanChatMember
[src]
fn new<C, U>(chat: C, user: U) -> UnbanChatMember where
C: ToChatRef,
U: ToUserId,
[src]
C: ToChatRef,
U: ToUserId,
Trait Implementations
impl Clone for UnbanChatMember
[src]
fn clone(&self) -> UnbanChatMember
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Request for UnbanChatMember
[src]
type Type = JsonRequestType<UnbanChatMember>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
[src]
fn detach(&self) -> DetachedRequest<Self::Response>
[src]
impl Serialize for UnbanChatMember
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,