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: ChatIdUnique identifier for the target group or username of the target supergroup or channel (in the format @username)
invite_link: StringThe 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 Serialize for RevokeChatInviteLink
impl Serialize for RevokeChatInviteLink
impl JsonMethod 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