Class: TD::Types::StoryAreaType::SuggestedReaction

Inherits:
TD::Types::StoryAreaType show all
Defined in:
lib/tdlib/types/story_area_type/suggested_reaction.rb

Overview

An area pointing to a suggested reaction. App needs to show a clickable reaction on the area and call setStoryReaction when the are is clicked.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#is_darkBoolean

True, if reaction has a dark background.

Returns:

  • (Boolean)

    the current value of is_dark



9
10
11
# File 'lib/tdlib/types/story_area_type/suggested_reaction.rb', line 9

def is_dark
  @is_dark
end

#is_flippedBoolean

True, if reaction corner is flipped.

Returns:

  • (Boolean)

    the current value of is_flipped



9
10
11
# File 'lib/tdlib/types/story_area_type/suggested_reaction.rb', line 9

def is_flipped
  @is_flipped
end

#reaction_typeTD::Types::ReactionType

Type of the reaction.

Returns:



9
10
11
# File 'lib/tdlib/types/story_area_type/suggested_reaction.rb', line 9

def reaction_type
  @reaction_type
end

#total_countInteger

Number of times the reaction was added.

Returns:

  • (Integer)

    the current value of total_count



9
10
11
# File 'lib/tdlib/types/story_area_type/suggested_reaction.rb', line 9

def total_count
  @total_count
end