Struct teloxide_core::payloads::ExportChatInviteLink
source · [−]pub struct ExportChatInviteLink {
pub chat_id: Recipient,
}Expand description
Use this method to generate 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.
Note: 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 — after this the link will become available to the bot via the getChat method. If your bot needs to generate a new invite link replacing its previous one, use exportChatInviteLink again.
Fields
chat_id: RecipientUnique identifier for the target chat or username of the target channel (in the format @channelusername)
Implementations
Trait Implementations
sourceimpl Clone for ExportChatInviteLink
impl Clone for ExportChatInviteLink
sourcefn clone(&self) -> ExportChatInviteLinkⓘNotable traits for ExportChatInviteLinkimpl Payload for ExportChatInviteLink type Output = String;
fn clone(&self) -> ExportChatInviteLinkⓘNotable traits for ExportChatInviteLinkimpl Payload for ExportChatInviteLink type Output = String;
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresourceimpl Debug for ExportChatInviteLink
impl Debug for ExportChatInviteLink
sourceimpl Hash for ExportChatInviteLink
impl Hash for ExportChatInviteLink
sourceimpl PartialEq<ExportChatInviteLink> for ExportChatInviteLink
impl PartialEq<ExportChatInviteLink> for ExportChatInviteLink
sourcefn eq(&self, other: &ExportChatInviteLink) -> bool
fn eq(&self, other: &ExportChatInviteLink) -> bool
sourceimpl Payload for ExportChatInviteLink
impl Payload for ExportChatInviteLink
sourcefn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
GetUpdates with
big timeout), the minimum timeout that should be used. Read moresourceimpl Serialize for ExportChatInviteLink
impl Serialize for ExportChatInviteLink
impl Eq for ExportChatInviteLink
impl StructuralEq for ExportChatInviteLink
impl StructuralPartialEq for ExportChatInviteLink
Auto Trait Implementations
impl RefUnwindSafe for ExportChatInviteLink
impl Send for ExportChatInviteLink
impl Sync for ExportChatInviteLink
impl Unpin for ExportChatInviteLink
impl UnwindSafe for ExportChatInviteLink
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.