MadelineProtoDocs/old_docs/API_docs_v103/constructors/game.md
2019-08-15 20:25:16 +02:00

1.1 KiB

title description image
game Game https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: game

Back to constructors index

Game

Attributes:

Name Type Required Description
id long Yes ID
access_hash long Yes Access hash
short_name string Yes Short name
title string Yes Title
description string Yes Description
photo Photo Optional Photo
document Document Optional 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}