telegram_bots_api/api/params/
create_chat_invite_link.rs

1use crate::api::enums::chat_uid::ChatUId;
2use serde::Serialize;
3
4/// <https://core.telegram.org/bots/api#createchatinvitelink>
5/// 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 administrator rights. The link can be revoked using the method revokeChatInviteLink. Returns the new invite link as ChatInviteLink object.
6#[derive(Debug, Serialize, Default)]
7pub struct CreateChatInviteLink {
8    pub chat_id: ChatUId,
9    #[serde(skip_serializing_if = "Option::is_none")]
10    pub name: Option<String>,
11    #[serde(skip_serializing_if = "Option::is_none")]
12    pub expire_date: Option<i64>,
13    #[serde(skip_serializing_if = "Option::is_none")]
14    pub member_limit: Option<i64>,
15    #[serde(skip_serializing_if = "Option::is_none")]
16    pub creates_join_request: Option<bool>,
17}