Class: TD::Types::MessageContent::Dice
- Inherits:
-
TD::Types::MessageContent
- Object
- Dry::Struct
- Base
- TD::Types::MessageContent
- TD::Types::MessageContent::Dice
- 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
-
#emoji ⇒ TD::Types::String
Emoji on which the dice throw animation is based.
-
#final_state ⇒ TD::Types::DiceStickers?
The animated stickers with the final dice animation; may be null if unknown.
-
#initial_state ⇒ TD::Types::DiceStickers?
The animated stickers with the initial dice animation; may be null if unknown.
-
#success_animation_frame_number ⇒ Integer
Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.
-
#value ⇒ Integer
The dice value.
Method Summary
Methods inherited from Base
Instance Attribute Details
#emoji ⇒ TD::Types::String
Emoji on which the dice throw animation is based.
16 17 18 |
# File 'lib/tdlib/types/message_content/dice.rb', line 16 def emoji @emoji end |
#final_state ⇒ TD::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.
16 17 18 |
# File 'lib/tdlib/types/message_content/dice.rb', line 16 def final_state @final_state end |
#initial_state ⇒ TD::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.
16 17 18 |
# File 'lib/tdlib/types/message_content/dice.rb', line 16 def initial_state @initial_state end |
#success_animation_frame_number ⇒ Integer
Number of frame after which a success animation like a shower of confetti needs to be shown on updateMessageSendSucceeded.
16 17 18 |
# File 'lib/tdlib/types/message_content/dice.rb', line 16 def success_animation_frame_number @success_animation_frame_number end |
#value ⇒ Integer
The dice value. If the value is 0, the dice don’t have final state yet.
16 17 18 |
# File 'lib/tdlib/types/message_content/dice.rb', line 16 def value @value end |