Layer 227
method Users
bots.getPreviewInfo#423ab3ad bot:InputUser lang_code:string = bots.PreviewInfo;

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.

Gogram Example

// BotsGetPreviewInfo - positional arguments
result, err := client.BotsGetPreviewInfo(&tg.InputUserSelf{}, "Hello, World!")
if err != nil {
    // handle error
}
// result is *tg.BotsPreviewInfo

Possible Errors

Code Type Description
400 BOT_INVALID This is not a valid bot.