CreateChatInviteLinkRequest

data class CreateChatInviteLinkRequest(chat_id: String, expire_date: Long?, member_limit: Long?) : TelegramRequest

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.

Constructors

CreateChatInviteLinkRequest
Link copied to clipboard
fun CreateChatInviteLinkRequest(chat_id: String, expire_date: Long? = null, member_limit: Long? = null)

Properties

chat_id
Link copied to clipboard
val chat_id: String
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
expire_date
Link copied to clipboard
val expire_date: Long? = null
Point in time (Unix timestamp) when the link will expire
member_limit
Link copied to clipboard
val member_limit: Long? = null
Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999