class

Tourmaline::MessageReactionUpdated

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(chat : Tourmaline::Chat, message_id : Int32 | Int64, date : Time, old_reaction : Array(Tourmaline::ReactionType) = [] of Tourmaline::ReactionType, new_reaction : Array(Tourmaline::ReactionType) = [] of Tourmaline::ReactionType, user : Tourmaline::User | Nil = nil, actor_chat : Tourmaline::Chat | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

actor_chat

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

Source
actor_chat=(actor_chat : Tourmaline::Chat | Nil)

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

Source
chat

The chat containing the message the user reacted to

Source
chat=(chat : Tourmaline::Chat)

The chat containing the message the user reacted to

Source
date

Date of the change in Unix time

Source
date=(date : Time)

Date of the change in Unix time

Source
message_id

Unique identifier of the message inside the chat

Source
message_id=(message_id : Int32 | Int64)

Unique identifier of the message inside the chat

Source
new_reaction

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

Source
new_reaction=(new_reaction : Array(Tourmaline::ReactionType))

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

Source
old_reaction

Previous list of reaction types that were set by the user

Source
old_reaction=(old_reaction : Array(Tourmaline::ReactionType))

Previous list of reaction types that were set by the user

Source
user

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

Source
user=(user : Tourmaline::User | Nil)

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

Source