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: Recipient
Unique 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§
source§impl Clone for CreateChatInviteLink
impl Clone for CreateChatInviteLink
source§impl Debug for CreateChatInviteLink
impl Debug for CreateChatInviteLink
source§impl Hash for CreateChatInviteLink
impl Hash for CreateChatInviteLink
source§impl PartialEq<CreateChatInviteLink> for CreateChatInviteLink
impl PartialEq<CreateChatInviteLink> for CreateChatInviteLink
source§fn 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 ==
.source§impl Payload for CreateChatInviteLink
impl Payload for CreateChatInviteLink
§type Output = ChatInviteLink
type Output = ChatInviteLink
The return type of a Telegram method. Read more
source§fn 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.source§impl 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§
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
Compare self to
key
and return true
if they are equal.