MadelineProtoDocs/docs/TD_docs/constructors/game.md

31 lines
1.0 KiB
Markdown
Raw Normal View History

2018-04-01 13:19:25 +02:00
---
title: game
description: Describes a game
2018-04-04 19:52:48 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
2018-04-01 13:19:25 +02:00
---
2018-04-05 01:19:57 +02:00
# Constructor: game
2018-04-01 13:19:25 +02:00
[Back to constructors index](index.md)
Describes a game
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[int64](../constructors/int64.md) | Yes|Game id|
|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|
|text\_entities|Array of [textEntity](../constructors/textEntity.md) | Yes|Entities contained in the text|
|description|[string](../types/string.md) | Yes|Game description|
|photo|[photo](../constructors/photo.md) | Yes|Game photo|
|animation|[animation](../constructors/animation.md) | Yes|Game animation, nullable|
### Type: [Game](../types/Game.md)