Struct teloxide_core::payloads::RevokeChatInviteLink
source · pub struct RevokeChatInviteLink {
pub chat_id: Recipient,
pub invite_link: String,
}
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: Recipient
Unique identifier for the target chat or username of the target channel (in the format @channelusername
)
invite_link: String
The invite link to revoke
Implementations§
Trait Implementations§
source§impl Clone for RevokeChatInviteLink
impl Clone for RevokeChatInviteLink
source§impl Debug for RevokeChatInviteLink
impl Debug for RevokeChatInviteLink
source§impl Hash for RevokeChatInviteLink
impl Hash for RevokeChatInviteLink
source§impl PartialEq<RevokeChatInviteLink> for RevokeChatInviteLink
impl PartialEq<RevokeChatInviteLink> for RevokeChatInviteLink
source§fn eq(&self, other: &RevokeChatInviteLink) -> bool
fn eq(&self, other: &RevokeChatInviteLink) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Payload for RevokeChatInviteLink
impl Payload for RevokeChatInviteLink
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 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§
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.