MadelineProto/docs/TD_docs/constructors/game.md

30 lines
953 B
Markdown
Raw Normal View History

---
title: game
description: Describes a game
---
## Constructor: game
[Back to constructors index](index.md)
Describes a game
### Attributes:
| Name | Type | Required | Description |
2017-08-20 11:05:56 +02:00
|----------|---------------|----------|-------------|
2017-12-21 21:08:25 +01:00
|id|[int64](../constructors/int64.md) | Yes|Game id|
2017-08-25 15:05:53 +02:00
|short\_name|[string](../types/string.md) | Yes|Game short name, to share a game use a URL https: t.me/{bot_username}?game={game_short_name}|
|title|[string](../types/string.md) | Yes|Game title|
|text|[string](../types/string.md) | Yes|Game text, usually containing game scoreboards|
2017-08-25 15:05:53 +02:00
|text\_entities|Array of [textEntity](../constructors/textEntity.md) | Yes|Entities contained in the text|
|description|[string](../types/string.md) | Yes|Game description|
2017-09-29 15:50:59 +02:00
|photo|[photo](../constructors/photo.md) | Yes|Game photo|
|animation|[animation](../constructors/animation.md) | Yes|Game animation, nullable|
### Type: [Game](../types/Game.md)