pub struct UnbanChatMember {
pub chat_id: ChatId,
pub user_id: i64,
pub only_if_banned: Option<bool>,
}
Expand description
Use this method to unban a previously banned user in a supergroup or channel. The user will not to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator for this to work. By default, this method guarantees that after the call the user is not a member of the chat, but will be able to join it. So if the user is a member of the chat they will also be removed from the chat. If you don’t want this, use the parameter only_if_banned. Returns True on success.
Fields§
§chat_id: ChatId
Unique identifier for the target group or username of the target supergroup or channel (in the format @channelusername)
user_id: i64
Unique identifier of the target user
only_if_banned: Option<bool>
Do nothing if the user is not banned
Implementations§
Trait Implementations§
Source§impl Clone for UnbanChatMember
impl Clone for UnbanChatMember
Source§fn clone(&self) -> UnbanChatMember
fn clone(&self) -> UnbanChatMember
Returns a duplicate 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 moreSource§impl Debug for UnbanChatMember
impl Debug for UnbanChatMember
Source§impl<'de> Deserialize<'de> for UnbanChatMember
impl<'de> Deserialize<'de> for UnbanChatMember
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Methods for UnbanChatMember
impl Methods for UnbanChatMember
Auto Trait Implementations§
impl Freeze for UnbanChatMember
impl RefUnwindSafe for UnbanChatMember
impl Send for UnbanChatMember
impl Sync for UnbanChatMember
impl Unpin for UnbanChatMember
impl UnwindSafe for UnbanChatMember
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more