ChatMemberUpdated

@Serializable
data class ChatMemberUpdated(val chat: Chat, val from: User, val date: Instant, val oldChatMember: ChatMember, val newChatMember: ChatMember, val inviteLink: ChatInviteLink? = null, val viaJoinRequest: Boolean? = null, val viaChatFolderInviteLink: Boolean? = null)

This object represents changes in the status of a chat member.

Api reference

Constructors

Link copied to clipboard
constructor(chat: Chat, from: User, date: Instant, oldChatMember: ChatMember, newChatMember: ChatMember, inviteLink: ChatInviteLink? = null, viaJoinRequest: Boolean? = null, viaChatFolderInviteLink: Boolean? = null)

Properties

Link copied to clipboard
val chat: Chat

Chat the user belongs to

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

Date the change was done in Unix time

Link copied to clipboard
val from: User

Performer of the action, which resulted in the change

Link copied to clipboard

Optional. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.

Link copied to clipboard

New information about the chat member

Link copied to clipboard

Previous information about the chat member

Link copied to clipboard

Optional. True, if the user joined the chat via a chat folder invite link

Link copied to clipboard
val viaJoinRequest: Boolean? = null

Optional. True, if the user joined the chat after sending a direct join request without using an invite link and being approved by an administrator