mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
i-AIOG-17 Add emoji to the Dice object
This commit is contained in:
parent
f5e4016bf8
commit
233c676755
2 changed files with 8 additions and 2 deletions
|
|
@ -12,7 +12,7 @@ from .chat_permissions import ChatPermissions
|
|||
from .chat_photo import ChatPhoto
|
||||
from .chosen_inline_result import ChosenInlineResult
|
||||
from .contact import Contact
|
||||
from .dice import Dice
|
||||
from .dice import Dice, DiceEmoji
|
||||
from .document import Document
|
||||
from .encrypted_credentials import EncryptedCredentials
|
||||
from .encrypted_passport_element import EncryptedPassportElement
|
||||
|
|
@ -85,6 +85,7 @@ __all__ = (
|
|||
'ContentType',
|
||||
'ContentTypes',
|
||||
'Dice',
|
||||
'DiceEmoji',
|
||||
'Document',
|
||||
'EncryptedCredentials',
|
||||
'EncryptedPassportElement',
|
||||
|
|
|
|||
|
|
@ -9,5 +9,10 @@ class Dice(base.TelegramObject):
|
|||
|
||||
https://core.telegram.org/bots/api#dice
|
||||
"""
|
||||
|
||||
emoji: base.String = fields.Field()
|
||||
value: base.Integer = fields.Field()
|
||||
|
||||
|
||||
class DiceEmoji:
|
||||
DICE = '🎲'
|
||||
DARTS = '🎯'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue