aiogram/aiogram/types/dice.py
2020-06-08 20:19:05 +03:00

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 = '🏀'