MessageReactionUpdated

data class MessageReactionUpdated(val chat: Chat, val messageId: Int, val user: User? = null, val actorChat: Chat? = null, val date: Int, val oldReaction: List<ReactionType> = emptyList(), val newReaction: List<ReactionType> = emptyList())(source)

MessageReactionUpdated

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

(auto-generated)

Author

ForteScarlet

Constructors

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

Properties

Link copied to clipboard
@SerialName(value = "actor_chat")
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
val date: Int

Date of the change in Unix time

Link copied to clipboard
@SerialName(value = "message_id")
val messageId: Int

Unique identifier of the message inside the chat

Link copied to clipboard
@SerialName(value = "new_reaction")
val newReaction: List<ReactionType>

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

Link copied to clipboard
@SerialName(value = "old_reaction")
val oldReaction: List<ReactionType>

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