Struct telegram_bot_api::methods::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 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
sourceimpl Clone for RevokeChatInviteLink
impl Clone for RevokeChatInviteLink
sourcefn clone(&self) -> RevokeChatInviteLink
fn clone(&self) -> RevokeChatInviteLink
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for RevokeChatInviteLink
impl Debug for RevokeChatInviteLink
sourceimpl<'de> Deserialize<'de> for RevokeChatInviteLink
impl<'de> Deserialize<'de> for RevokeChatInviteLink
sourcefn 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
sourceimpl Methods for RevokeChatInviteLink
impl Methods for RevokeChatInviteLink
sourceimpl Serialize for RevokeChatInviteLink
impl Serialize 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