MadelineProtoDocs/old_docs/API_docs_v71/constructors/game.md
2019-12-27 17:48:04 +01: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}