Layer 224
BotAppObj
Contains information about a direct link Mini App.
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 |
|---|---|---|
| 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
BotAppGogram Example
// Creating BotAppObj constructor obj := &tg.BotAppObj{ Id: int64(1234567890), AccessHash: int64(1234567890), ShortName: "Hello, World!", Title: "Hello, World!", Description: "Hello, World!", Photo: &tg.Photo{}, // ... more required fields // Optional fields: // Document: &tg.Document{}, }