class Telegram::API::Dice
- Telegram::API::Dice
- Telegram::API::Type
- Reference
- Object
Overview
This object represents an animated emoji that displays a random value.
Defined in:
telegram/api/generated/types.crConstructors
- .new(emoji : String, value : Int32)
-
.new(pull : JSON::PullParser)
This object represents an animated emoji that displays a random value.
Instance Method Summary
-
#emoji : String
Emoji on which the dice throw animation is based
-
#emoji=(emoji : String)
Emoji on which the dice throw animation is based
-
#value : Int32
Value of the dice, 1-6 for "🎲", "🎯" and "🎳" base emoji, 1-5 for "🏀" and "⚽" base emoji, 1-64 for "🎰" base emoji
-
#value=(value : Int32)
Value of the dice, 1-6 for "🎲", "🎯" and "🎳" base emoji, 1-5 for "🏀" and "⚽" base emoji, 1-64 for "🎰" base emoji
Instance methods inherited from class Telegram::API::Type
==(other)
==,
client
client
Constructor methods inherited from class Telegram::API::Type
new(pull : JSON::PullParser)
new
Constructor Detail
This object represents an animated emoji that displays a random value.
Instance Method Detail
Value of the dice, 1-6 for "🎲", "🎯" and "🎳" base emoji, 1-5 for "🏀" and "⚽" base emoji, 1-64 for "🎰" base emoji
Value of the dice, 1-6 for "🎲", "🎯" and "🎳" base emoji, 1-5 for "🏀" and "⚽" base emoji, 1-64 for "🎰" base emoji