Class: TD::Types::MessageContent::Dice

Inherits:
TD::Types::MessageContent show all
Defined in:
lib/tdlib/types/message_content/dice.rb

Overview

A dice message. The dice value is randomly generated by the server.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#emojiTD::Types::String

Emoji on which the dice throw animation is based.

Returns:

  • (TD::Types::String)

    the current value of emoji



16
17
18
# File 'lib/tdlib/types/message_content/dice.rb', line 16

def emoji
  @emoji
end

#final_stateTD::Types::DiceStickers?

The animated stickers with the final dice animation; may be null if unknown. Update::MessageContent will be sent when the sticker became known.

Returns:



16
17
18
# File 'lib/tdlib/types/message_content/dice.rb', line 16

def final_state
  @final_state
end

#initial_stateTD::Types::DiceStickers?

The animated stickers with the initial dice animation; may be null if unknown. Update::MessageContent will be sent when the sticker became known.

Returns:



16
17
18
# File 'lib/tdlib/types/message_content/dice.rb', line 16

def initial_state
  @initial_state
end

#success_animation_frame_numberInteger

Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.

Returns:

  • (Integer)

    the current value of success_animation_frame_number



16
17
18
# File 'lib/tdlib/types/message_content/dice.rb', line 16

def success_animation_frame_number
  @success_animation_frame_number
end

#valueInteger

The dice value. If the value is 0, the dice don’t have final state yet.

Returns:

  • (Integer)

    the current value of value



16
17
18
# File 'lib/tdlib/types/message_content/dice.rb', line 16

def value
  @value
end