MadelineProtoDocs/old_docs/API_docs_v39/constructors/game.md
2020-06-16 17:50:25 +02:00

1.2 KiB

title description image
game Indicates an already sent game https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: game

Back to constructors index

Indicates an already sent game

Attributes:

Name Type Required Description
id long Yes ID of the game
access_hash long Yes Access hash of the game
short_name string Yes Short name for the game
title string Yes Title of the game
description string Yes Game description
photo Photo Optional Game preview
document Document Optional Optional attached document

Type: Game

Example:

$game = ['_' => 'game', 'id' => long, 'access_hash' => long, 'short_name' => 'string', 'title' => 'string', 'description' => 'string', 'photo' => Photo, 'document' => Document];

Or, if you're into Lua:

game={_='game', id=long, access_hash=long, short_name='string', title='string', description='string', photo=Photo, document=Document}