Layer 227
GameObj
Indicates an already sent game
constructor
game#bdf9653b flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document = Game;
Parameters
| Name | Type | Description |
|---|---|---|
| Id | long | ID of the game |
| AccessHash | long | Access hash of the game |
| ShortName | string | Short name for the game |
| Title | string | Title of the game |
| Description | string | Game description |
| Photo | Photo | Game preview |
| Document | flags .0? Document | Optional attached document |
Returns
GameGogram Example
// Creating GameObj constructor obj := &tg.GameObj{ Id: int64(1234567890), AccessHash: int64(1234567890), ShortName: "Hello, World!", Title: "Hello, World!", Description: "Hello, World!", Photo: &tg.Photo{}, // ... more required fields }