mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
19 lines
488 B
Python
19 lines
488 B
Python
from . import base, fields
|
|
|
|
|
|
class Dice(base.TelegramObject):
|
|
"""
|
|
This object represents a dice with random value from 1 to 6.
|
|
(Yes, we're aware of the “proper” singular of die.
|
|
But it's awkward, and we decided to help it change. One dice at a time!)
|
|
|
|
https://core.telegram.org/bots/api#dice
|
|
"""
|
|
emoji: base.String = fields.Field()
|
|
value: base.Integer = fields.Field()
|
|
|
|
|
|
class DiceEmoji:
|
|
DICE = '🎲'
|
|
DART = '🎯'
|
|
BASKETBALL = '🏀'
|