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)
#
(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)
Methods#
#actor_chat : Tourmaline::Chat?
#
: Tourmaline::Chat?
Optional. The chat on behalf of which the reaction was changed, if the user is anonymous
#actor_chat=(actor_chat : Tourmaline::Chat?)
#
(actor_chat : Tourmaline::Chat?)
Optional. The chat on behalf of which the reaction was changed, if the user is anonymous
#message_id=(message_id : Int32 | Int64)
#
(message_id : Int32 | Int64)
Unique identifier of the message inside the chat
#new_reaction : Array(Tourmaline::ReactionType)
#
: Array(Tourmaline::ReactionType)
New list of reaction types that have been set by the user
#new_reaction=(new_reaction : Array(Tourmaline::ReactionType))
#
(new_reaction : Array(Tourmaline::ReactionType))
New list of reaction types that have been set by the user
#old_reaction : Array(Tourmaline::ReactionType)
#
: Array(Tourmaline::ReactionType)
Previous list of reaction types that were set by the user
#old_reaction=(old_reaction : Array(Tourmaline::ReactionType))
#
(old_reaction : Array(Tourmaline::ReactionType))
Previous list of reaction types that were set by the user
#user : Tourmaline::User?
#
: Tourmaline::User?
Optional. The user that changed the reaction, if the user isn't anonymous
#user=(user : Tourmaline::User?)
#
(user : Tourmaline::User?)
Optional. The user that changed the reaction, if the user isn't anonymous