Dice#

class aiogram.types.dice.Dice(*, emoji: str, value: int, **extra_data: Any)[source]#

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

Source: https://core.telegram.org/bots/api#dice

emoji: str#

Emoji on which the dice throw animation is based

value: int#

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

model_computed_fields: ClassVar[dict[str, ComputedFieldInfo]] = {}#

A dictionary of computed field names and their corresponding ComputedFieldInfo objects.

model_post_init(_ModelMetaclass__context: Any) None#

We need to both initialize private attributes and call the user-defined model_post_init method.

class aiogram.types.dice.DiceEmoji[source]#
DICE = '🎲'#
DART = '🎯'#
BASKETBALL = '🏀'#
FOOTBALL = '⚽'#
SLOT_MACHINE = '🎰'#
BOWLING = '🎳'#