pub struct ExportChatInviteLink { /* private fields */ }Expand description
Generates a new invite link for a chat.
Any previously generated link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. Returns the new invite link as String on success.
§Notes
Each administrator in a chat generates their own invite links.
Bots can’t use invite links generated by other administrators.
If you want your bot to work with invite links, it will need to generate
its own link using ExportChatInviteLink or by calling the crate::types::GetChat method.
If your bot needs to generate a new primary invite link replacing its previous one,
use ExportChatInviteLink again.
Implementations§
Trait Implementations§
Source§impl Clone for ExportChatInviteLink
impl Clone for ExportChatInviteLink
Source§fn clone(&self) -> ExportChatInviteLink
fn clone(&self) -> ExportChatInviteLink
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 ExportChatInviteLink
impl Debug for ExportChatInviteLink
Source§impl Method for ExportChatInviteLink
impl Method for ExportChatInviteLink
Auto Trait Implementations§
impl Freeze for ExportChatInviteLink
impl RefUnwindSafe for ExportChatInviteLink
impl Send for ExportChatInviteLink
impl Sync for ExportChatInviteLink
impl Unpin for ExportChatInviteLink
impl UnwindSafe for ExportChatInviteLink
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