mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 17:55:35 +01:00
31 lines
897 B
Markdown
31 lines
897 B
Markdown
---
|
|
title: "inputGameShortName"
|
|
description: "Game by short name"
|
|
nav_exclude: true
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Constructor: inputGameShortName
|
|
[Back to constructors index](/API_docs/constructors/index.html)
|
|
|
|
|
|
|
|
Game by short name
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|bot\_id|[Username, chat ID, Update, Message or InputUser](/API_docs/types/InputUser.html) | Optional|The bot that provides the game|
|
|
|short\_name|[string](/API_docs/types/string.html) | Yes|The game's short name, usually obtained from a [game link »](https://core.telegram.org/api/links#game-links)|
|
|
|
|
|
|
|
|
### Type: [InputGame](/API_docs/types/InputGame.html)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$inputGameShortName = ['_' => 'inputGameShortName', 'bot_id' => InputUser, 'short_name' => 'string'];
|
|
```
|