MadelineProto/docs/TD_docs/constructors/messageGame.md

45 lines
652 B
Markdown
Raw Normal View History

---
title: messageGame
description: Message with a game
---
## Constructor: messageGame
[Back to constructors index](index.md)
Message with a game
### Attributes:
| Name | Type | Required | Description |
|----------|:-------------:|:--------:|------------:|
|game|[game](../types/game.md) | Yes|The game|
### Type: [MessageContent](../types/MessageContent.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$messageGame = ['_' => 'messageGame', 'game' => game];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "messageGame", "game": game}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
messageGame={_='messageGame', game=game}
```