mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-14 05:07:22 +01:00
1.3 KiB
1.3 KiB
title | description |
---|---|
game | Describes a game |
Constructor: game
Describes a game
Attributes:
Name | Type | Required | Description |
---|---|---|---|
id | long | Yes | Game id |
short_name | string | Yes | Game short name, to share a game use a URL https: telegram.me/{bot_username}?game={game_short_name} |
title | string | Yes | Game title |
text | string | Yes | Game text, usually containing game scoreboards |
text_entities | Array of MessageEntity | Yes | Entities contained in the text |
description | string | Yes | Game description |
photo | photo | Yes | Game photo |
animation | animation | Yes | Game animation, nullable |
Type: Game
Example:
$game = ['_' => 'game', 'id' => long, 'short_name' => string, 'title' => string, 'text' => string, 'text_entities' => [MessageEntity], 'description' => string, 'photo' => photo, 'animation' => animation, ];
Or, if you're into Lua:
game={_='game', id=long, short_name=string, title=string, text=string, text_entities={MessageEntity}, description=string, photo=photo, animation=animation, }