pub struct RevokeChatInviteLink {
pub chat_id: ChatId,
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 administrator rights. Returns the revoked invite link as ChatInviteLink object.
Fields§
§chat_id: ChatId
Unique identifier of 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§fn clone(&self) -> RevokeChatInviteLink
fn clone(&self) -> RevokeChatInviteLink
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 RevokeChatInviteLink
impl Debug for RevokeChatInviteLink
Source§impl<'de> Deserialize<'de> for RevokeChatInviteLink
impl<'de> Deserialize<'de> for RevokeChatInviteLink
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 RevokeChatInviteLink
impl Methods for RevokeChatInviteLink
Auto Trait Implementations§
impl Freeze for RevokeChatInviteLink
impl RefUnwindSafe for RevokeChatInviteLink
impl Send for RevokeChatInviteLink
impl Sync for RevokeChatInviteLink
impl Unpin for RevokeChatInviteLink
impl UnwindSafe for RevokeChatInviteLink
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