ChatInviteLink

data class ChatInviteLink(val inviteLink: String, val creator: User, val createsJoinRequest: Boolean, val isPrimary: Boolean, val isRevoked: Boolean, val name: String? = null, val expireDate: Int? = null, val memberLimit: Int? = null, val pendingJoinRequestCount: Int? = null)(source)

ChatInviteLink

Represents an invite link for a chat.

(auto-generated)

Author

ForteScarlet

Constructors

Link copied to clipboard
constructor(inviteLink: String, creator: User, createsJoinRequest: Boolean, isPrimary: Boolean, isRevoked: Boolean, name: String? = null, expireDate: Int? = null, memberLimit: Int? = null, pendingJoinRequestCount: Int? = null)

Properties

Link copied to clipboard
@SerialName(value = "creates_join_request")
val createsJoinRequest: Boolean

True, if users joining the chat via the link need to be approved by chat administrators

Link copied to clipboard

Creator of the link

Link copied to clipboard
@SerialName(value = "expire_date")
val expireDate: Int? = null

Optional. Point in time (Unix timestamp) when the link will expire or has been expired

Link copied to clipboard
@SerialName(value = "invite_link")
val inviteLink: String

The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”.

Link copied to clipboard
@SerialName(value = "is_primary")
val isPrimary: Boolean

True, if the link is primary

Link copied to clipboard
@SerialName(value = "is_revoked")
val isRevoked: Boolean

True, if the link is revoked

Link copied to clipboard
@SerialName(value = "member_limit")
val memberLimit: Int? = null

Optional. The maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999

Link copied to clipboard
val name: String? = null

Optional. Invite link name

Link copied to clipboard
@SerialName(value = "pending_join_request_count")
val pendingJoinRequestCount: Int? = null

Optional. Number of pending join requests created using this link