Class: TD::Types::MessageReaction

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/message_reaction.rb

Overview

Contains information about a reaction to a message.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_chosenBoolean

True, if the reaction is chosen by the current user.

Returns:

  • (Boolean)

    the current value of is_chosen



11
12
13
# File 'lib/tdlib/types/message_reaction.rb', line 11

def is_chosen
  @is_chosen
end

#recent_sender_idsArray<TD::Types::MessageSender>

Identifiers of at most 3 recent message senders, added the reaction; available in private, basic group and supergroup chats.

Returns:



11
12
13
# File 'lib/tdlib/types/message_reaction.rb', line 11

def recent_sender_ids
  @recent_sender_ids
end

#total_countInteger

Number of times the reaction was added.

Returns:

  • (Integer)

    the current value of total_count



11
12
13
# File 'lib/tdlib/types/message_reaction.rb', line 11

def total_count
  @total_count
end

#typeTD::Types::ReactionType

Type of the reaction.

Returns:



11
12
13
# File 'lib/tdlib/types/message_reaction.rb', line 11

def type
  @type
end

#used_sender_idTD::Types::MessageSender?

Identifier of the message sender used by the current user to add the reaction; may be null if unknown or the reaction isn’t chosen.

Returns:



11
12
13
# File 'lib/tdlib/types/message_reaction.rb', line 11

def used_sender_id
  @used_sender_id
end