Layer 220
constructor
botApp#95fcd1d6 flags:# id:long access_hash:long short_name:string title:string description:string photo:Photo document:flags.0?Document hash:long = BotApp;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Id long bot mini app ID
AccessHash long bot mini app access hash
ShortName string bot mini app short name, used to generate Direct Mini App deep links.
Title string bot mini app title.
Description string bot mini app description.
Photo Photo bot mini app photo.
Document flags.0?Document bot mini app animation.
Hash long Hash to pass to messages. get Bot App, to avoid refetching bot app info if it hasn't changed.

Returns

BotApp

Gogram Example

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

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