Struct teloxide_core::payloads::CreateChatInviteLink
source · [−]pub struct CreateChatInviteLink {
pub chat_id: Recipient,
pub name: Option<String>,
pub expire_date: Option<DateTime<Utc>>,
pub member_limit: Option<u32>,
pub creates_join_request: Option<bool>,
}Expand description
Use this method to create an additional invite link for a chat. The bot must be an administrator in the chat for this to work and must have the appropriate admin rights. The link can be revoked using the method RevokeChatInviteLink. Returns the new invite link as ChatInviteLink object.
Fields
chat_id: RecipientUnique identifier for the target chat or username of the target channel (in the format @channelusername)
name: Option<String>Invite link name; 0-32 characters
expire_date: Option<DateTime<Utc>>Point in time (Unix timestamp) when the link will expire
member_limit: Option<u32>Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
creates_join_request: Option<bool>True, if users joining the chat via the link need to be approved by chat administrators. If True, member_limit can’t be specified
Implementations
Trait Implementations
sourceimpl Clone for CreateChatInviteLink
impl Clone for CreateChatInviteLink
sourcefn clone(&self) -> CreateChatInviteLinkⓘNotable traits for CreateChatInviteLinkimpl Payload for CreateChatInviteLink type Output = ChatInviteLink;
fn clone(&self) -> CreateChatInviteLinkⓘNotable traits for CreateChatInviteLinkimpl Payload for CreateChatInviteLink type Output = ChatInviteLink;
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CreateChatInviteLink
impl Debug for CreateChatInviteLink
sourceimpl Hash for CreateChatInviteLink
impl Hash for CreateChatInviteLink
sourceimpl PartialEq<CreateChatInviteLink> for CreateChatInviteLink
impl PartialEq<CreateChatInviteLink> for CreateChatInviteLink
sourcefn eq(&self, other: &CreateChatInviteLink) -> bool
fn eq(&self, other: &CreateChatInviteLink) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &CreateChatInviteLink) -> bool
fn ne(&self, other: &CreateChatInviteLink) -> bool
This method tests for !=.
sourceimpl Payload for CreateChatInviteLink
impl Payload for CreateChatInviteLink
type Output = ChatInviteLink
type Output = ChatInviteLink
The return type of a Telegram method. Read more
sourcefn timeout_hint(&self) -> Option<Duration>
fn timeout_hint(&self) -> Option<Duration>
If this payload may take long time to execute (e.g. GetUpdates with
big timeout), the minimum timeout that should be used. Read more
sourceimpl Serialize for CreateChatInviteLink
impl Serialize for CreateChatInviteLink
impl Eq for CreateChatInviteLink
impl StructuralEq for CreateChatInviteLink
impl StructuralPartialEq for CreateChatInviteLink
Auto Trait Implementations
impl RefUnwindSafe for CreateChatInviteLink
impl Send for CreateChatInviteLink
impl Sync for CreateChatInviteLink
impl Unpin for CreateChatInviteLink
impl UnwindSafe for CreateChatInviteLink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
impl<T> Erasable for T
impl<T> Erasable for T
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
