ChatJoinRequest

@Serializable
data class ChatJoinRequest(val chat: Chat, val from: User, val userChatId: Long, val date: Instant, val bio: String? = null, val inviteLink: ChatInviteLink? = null)

Represents a join request sent to a chat.

Api reference

Constructors

Link copied to clipboard
constructor(chat: Chat, from: User, userChatId: Long, date: Instant, bio: String? = null, inviteLink: ChatInviteLink? = null)

Properties

Link copied to clipboard
val bio: String? = null

Optional. Bio of the user.

Link copied to clipboard
val chat: Chat

Chat to which the request was sent

Link copied to clipboard
@Serializable(with = InstantSerializer::class)
val date: Instant

Date the request was sent in Unix time

Link copied to clipboard
val from: User

User that sent the join request

Link copied to clipboard

Optional. Chat invite link that was used by the user to send the join request

Link copied to clipboard

Identifier of a private chat with the user who sent the join request. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a 64-bit integer or double-precision float type are safe for storing this identifier. The bot can use this identifier for 5 minutes to send messages until the join request is processed, assuming no other administrator contacted the user.