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§
Source§impl ExportChatInviteLink
impl ExportChatInviteLink
pub fn new(chat_id: impl Into<Recipient>) -> ExportChatInviteLink ⓘ
Trait Implementations§
Source§impl Clone for ExportChatInviteLink
impl Clone for ExportChatInviteLink
Source§fn clone(&self) -> ExportChatInviteLink ⓘ
fn clone(&self) -> ExportChatInviteLink ⓘ
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExportChatInviteLink
impl Debug for ExportChatInviteLink
impl Eq for ExportChatInviteLink
Source§impl Hash for ExportChatInviteLink
impl Hash for ExportChatInviteLink
Source§impl PartialEq for ExportChatInviteLink
impl PartialEq for ExportChatInviteLink
Source§impl Payload for ExportChatInviteLink
impl Payload for ExportChatInviteLink
Source§const NAME: &'static str = "ExportChatInviteLink"
const NAME: &'static str = "ExportChatInviteLink"
EditMessageTextInline).Source§const TELEGRAM_METHOD: &'static str = Self::NAME
const TELEGRAM_METHOD: &'static str = Self::NAME
EditMessageText). Defaults to the payload name.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
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for ExportChatInviteLink
Auto Trait Implementations§
impl Forget for ExportChatInviteLink
impl Freeze for ExportChatInviteLink
impl Move for ExportChatInviteLink
impl RefUnwindSafe for ExportChatInviteLink
impl Send for ExportChatInviteLinkwhere
RawVecInner: Send,
impl Sync for ExportChatInviteLinkwhere
RawVecInner: Sync,
impl Unpin for ExportChatInviteLink
impl UnsafeUnpin for ExportChatInviteLink
impl UnwindSafe for ExportChatInviteLinkwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<P> ExportChatInviteLinkSetters for Pwhere
P: HasPayload<Payload = ExportChatInviteLink>,
impl<P> ExportChatInviteLinkSetters for Pwhere
P: HasPayload<Payload = ExportChatInviteLink>,
Source§impl<P> HasPayload for Pwhere
P: Payload,
impl<P> HasPayload for Pwhere
P: Payload,
Source§fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
fn payload_mut(&mut self) -> &mut <P as HasPayload>::Payload
Source§fn payload_ref(&self) -> &<P as HasPayload>::Payload
fn payload_ref(&self) -> &<P as HasPayload>::Payload
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more