Struct teloxide_core::payloads::UnbanChatMember
source · pub struct UnbanChatMember {
pub chat_id: Recipient,
pub user_id: UserId,
pub only_if_banned: Option<bool>,
}
Expand description
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 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: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
user_id: UserId
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§impl Debug for UnbanChatMember
impl Debug for UnbanChatMember
source§impl Hash for UnbanChatMember
impl Hash for UnbanChatMember
source§impl PartialEq<UnbanChatMember> for UnbanChatMember
impl PartialEq<UnbanChatMember> for UnbanChatMember
source§fn eq(&self, other: &UnbanChatMember) -> bool
fn eq(&self, other: &UnbanChatMember) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for UnbanChatMember
impl Payload for UnbanChatMember
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g.
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl Serialize for UnbanChatMember
impl Serialize for UnbanChatMember
impl Eq for UnbanChatMember
impl StructuralEq for UnbanChatMember
impl StructuralPartialEq for UnbanChatMember
Auto Trait Implementations§
impl RefUnwindSafe for UnbanChatMember
impl Send for UnbanChatMember
impl Sync for UnbanChatMember
impl Unpin for UnbanChatMember
impl UnwindSafe for UnbanChatMember
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.