mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
23 lines
725 B
Python
23 lines
725 B
Python
import typing
|
|
|
|
from . import base
|
|
from . import fields
|
|
from .animation import Animation
|
|
from .message_entity import MessageEntity
|
|
from .photo_size import PhotoSize
|
|
|
|
|
|
class Game(base.TelegramObject):
|
|
"""
|
|
This object represents a game.
|
|
|
|
Use BotFather to create and edit games, their short names will act as unique identifiers.
|
|
|
|
https://core.telegram.org/bots/api#game
|
|
"""
|
|
title: base.String = fields.Field()
|
|
description: base.String = fields.Field()
|
|
photo: typing.List[PhotoSize] = fields.ListField(base=PhotoSize)
|
|
text: base.String = fields.Field()
|
|
text_entities: typing.List[MessageEntity] = fields.ListField(base=MessageEntity)
|
|
animation: Animation = fields.Field(base=Animation)
|