Layer 220
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
Flags # Flags, see TL conditional fields
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

Game

Gogram Example

// Creating Game constructor
obj := &tg.Game{
    Id: int64(0),
    AccessHash: int64(0),
    ShortName: "...",
    Title: "...",
    Description: "...",
    Photo: &tg.Photo{},

    // Optional fields:
    // Document: &tg.Document{},
}