class Tourmaline::MessageReactionUpdated

Overview

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

Included Modules

Defined in:

tourmaline/types/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def actor_chat : Tourmaline::Chat | Nil #

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


[View source]
def actor_chat=(actor_chat : Tourmaline::Chat | Nil) #

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


[View source]
def chat : Tourmaline::Chat #

The chat containing the message the user reacted to


[View source]
def chat=(chat : Tourmaline::Chat) #

The chat containing the message the user reacted to


[View source]
def date : Time #

[View source]
def date=(date : Time) #

[View source]
def message_id : Int32 | Int64 #

Unique identifier of the message inside the chat


[View source]
def message_id=(message_id : Int32 | Int64) #

Unique identifier of the message inside the chat


[View source]
def new_reaction : Array(Tourmaline::ReactionType) #

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


[View source]
def new_reaction=(new_reaction : Array(Tourmaline::ReactionType)) #

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


[View source]
def old_reaction : Array(Tourmaline::ReactionType) #

Previous list of reaction types that were set by the user


[View source]
def old_reaction=(old_reaction : Array(Tourmaline::ReactionType)) #

Previous list of reaction types that were set by the user


[View source]
def user : Tourmaline::User | Nil #

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


[View source]
def user=(user : Tourmaline::User | Nil) #

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


[View source]