Layer 220
BotsGetPreviewInfo
Bot owners only, fetch main mini app preview information, see here for more info.
method
Users
Parameters
| Name | Type | Description |
|---|---|---|
| Bot | InputUser | The bot that owns the Main Mini App. |
| LangCode | string | Fetch previews for the specified ISO 639-1 language code. |
Returns
bots.PreviewInfoPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
Gogram Example
// BotsGetPreviewInfo - positional arguments result, err := client.BotsGetPreviewInfo(&tg.InputUserSelf{}, "...") if err != nil { // handle error } // result is *tg.BotsPreviewInfo