class Hamilton::Types::MessageReactionUpdated

Overview

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

Included Modules

Defined in:

types/message_reaction_updated.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def actor_chat : Hamilton::Types::Chat | Nil #

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


def actor_chat=(actor_chat : Hamilton::Types::Chat | Nil) #

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


The chat containing the message the user reacted to.


def chat=(chat : Hamilton::Types::Chat) #

The chat containing the message the user reacted to.


def date : Int32 #

Date of the change in Unix time.


def date=(date : Int32) #

Date of the change in Unix time.


def message_id : Int32 #

Unique identifier of the message inside the chat.


def message_id=(message_id : Int32) #

Unique identifier of the message inside the chat.


def new_reaction : Array(Hamilton::Types::ReactionType) #

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


def new_reaction=(new_reaction : Array(Hamilton::Types::ReactionType)) #

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


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def old_reaction : Array(Hamilton::Types::ReactionType) #

Previous list of reaction types that were set by the user.


def old_reaction=(old_reaction : Array(Hamilton::Types::ReactionType)) #

Previous list of reaction types that were set by the user.


def user : Hamilton::Types::User | Nil #

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


def user=(user : Hamilton::Types::User | Nil) #

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