Skip to content

class Tourmaline::MessageReactionUpdated
inherits Reference #

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

Included modules

JSON::Serializable

Constructors#

.new(chat, message_id, date, old_reaction : Array(Tourmaline::ReactionType) = [] of Tourmaline::ReactionType, new_reaction : Array(Tourmaline::ReactionType) = [] of Tourmaline::ReactionType, user : Tourmaline::User? = nil, actor_chat : Tourmaline::Chat? = nil) #

View source

.new(pull : JSON::PullParser) #

View source

Methods#

#actor_chat : Tourmaline::Chat? #

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

View source

#actor_chat=(actor_chat : Tourmaline::Chat?) #

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

View source

#chat : Tourmaline::Chat #

The chat containing the message the user reacted to

View source

#chat=(chat : Tourmaline::Chat) #

The chat containing the message the user reacted to

View source

#date : Time #

View source

#date=(date : Time) #

View source

#message_id : Int32 | Int64 #

Unique identifier of the message inside the chat

View source

#message_id=(message_id : Int32 | Int64) #

Unique identifier of the message inside the chat

View source

#new_reaction : Array(Tourmaline::ReactionType) #

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

View source

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

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

View source

#old_reaction : Array(Tourmaline::ReactionType) #

Previous list of reaction types that were set by the user

View source

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

Previous list of reaction types that were set by the user

View source

#user : Tourmaline::User? #

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

View source

#user=(user : Tourmaline::User?) #

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

View source