MadelineProtoDocs/old_docs/API_docs_v62/constructors/game.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

1.3 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];

PWRTelegram json-encoded version:

{"_": "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}