MessageReactionUpdated

@Serializable
data class MessageReactionUpdated(val chat: Chat, val messageId: Long, val user: User? = null, val actorChat: Chat? = null, val date: Instant, val oldReaction: List<ReactionType>, val newReaction: List<ReactionType>)

This object represents a change of a reaction on a message performed by a user.

Api reference

Constructors

Link copied to clipboard
constructor(chat: Chat, messageId: Long, user: User? = null, actorChat: Chat? = null, date: Instant, oldReaction: List<ReactionType>, newReaction: List<ReactionType>)

Properties

Link copied to clipboard
val actorChat: Chat? = null

Optional. The chat on behalf of which the reaction was changed, if the user is anonymous

Link copied to clipboard
val chat: Chat

The chat containing the message the user reacted to

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

Date of the change in Unix time

Link copied to clipboard

Unique identifier of the message inside the chat

Link copied to clipboard

New list of reaction types that have been set by the user

Link copied to clipboard

Previous list of reaction types that were set by the user

Link copied to clipboard
val user: User? = null

Optional. The user that changed the reaction, if the user isn't anonymous