pub struct ExportChatInviteLink {
pub chat_id: ChatId,
}
Expand description
Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the new invite link as String on success.
Fields§
§chat_id: ChatId
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
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<'de> Deserialize<'de> for ExportChatInviteLink
impl<'de> Deserialize<'de> for ExportChatInviteLink
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 ExportChatInviteLink
impl Methods 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