Struct teloxide_core::payloads::RevokeChatInviteLink
source · [−]Expand description
Use this method to revoke an invite link created by the bot. If the primary link is revoked, a new link is automatically generated. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the revoked invite link as ChatInviteLink object.
Fields
chat_id: RecipientUnique identifier for the target chat or username of the target channel (in the format @channelusername)
invite_link: StringThe invite link to revoke
Implementations
Trait Implementations
sourceimpl Clone for RevokeChatInviteLink
impl Clone for RevokeChatInviteLink
sourcefn clone(&self) -> RevokeChatInviteLinkⓘNotable traits for RevokeChatInviteLinkimpl Payload for RevokeChatInviteLink type Output = String;
fn clone(&self) -> RevokeChatInviteLinkⓘNotable traits for RevokeChatInviteLinkimpl Payload for RevokeChatInviteLink type Output = String;
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for RevokeChatInviteLink
impl Debug for RevokeChatInviteLink
sourceimpl Hash for RevokeChatInviteLink
impl Hash for RevokeChatInviteLink
sourceimpl PartialEq<RevokeChatInviteLink> for RevokeChatInviteLink
impl PartialEq<RevokeChatInviteLink> for RevokeChatInviteLink
sourcefn eq(&self, other: &RevokeChatInviteLink) -> bool
fn eq(&self, other: &RevokeChatInviteLink) -> bool
sourceimpl Payload for RevokeChatInviteLink
impl Payload for RevokeChatInviteLink
sourcefn 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. Read moresourceimpl Serialize for RevokeChatInviteLink
impl Serialize for RevokeChatInviteLink
impl Eq for RevokeChatInviteLink
impl StructuralEq for RevokeChatInviteLink
impl StructuralPartialEq for RevokeChatInviteLink
Auto Trait Implementations
impl RefUnwindSafe for RevokeChatInviteLink
impl Send for RevokeChatInviteLink
impl Sync for RevokeChatInviteLink
impl Unpin for RevokeChatInviteLink
impl UnwindSafe for RevokeChatInviteLink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<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,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.