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: Recipient
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§impl Debug for ExportChatInviteLink
impl Debug for ExportChatInviteLink
source§impl Hash for ExportChatInviteLink
impl Hash for ExportChatInviteLink
source§impl PartialEq<ExportChatInviteLink> for ExportChatInviteLink
impl PartialEq<ExportChatInviteLink> for ExportChatInviteLink
source§fn eq(&self, other: &ExportChatInviteLink) -> bool
fn eq(&self, other: &ExportChatInviteLink) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl Payload for ExportChatInviteLink
impl Payload for ExportChatInviteLink
source§fn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
GetUpdates
with
big timeout
), the minimum timeout that should be used.source§impl 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§
source§impl<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,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.