class Telegram::API::Dice

Overview

This object represents an animated emoji that displays a random value.

Defined in:

telegram/api/generated/types.cr

Constructors

Instance Method Summary

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

def self.new(emoji : String, value : Int32) #

[View source]
def self.new(pull : JSON::PullParser) #

This object represents an animated emoji that displays a random value.


[View source]

Instance Method Detail

def emoji : String #

Emoji on which the dice throw animation is based


[View source]
def emoji=(emoji : String) #

Emoji on which the dice throw animation is based


[View source]
def value : Int32 #

Value of the dice, 1-6 for "🎲", "🎯" and "🎳" base emoji, 1-5 for "🏀" and "⚽" base emoji, 1-64 for "🎰" base emoji


[View source]
def value=(value : Int32) #

Value of the dice, 1-6 for "🎲", "🎯" and "🎳" base emoji, 1-5 for "🏀" and "⚽" base emoji, 1-64 for "🎰" base emoji


[View source]