Layer 227
BotsReorderPreviewMedias
Reorder a main mini app previews, see here for more info.
method
Users
bots.reorderPreviewMedias#b627f3aa bot:InputUser lang_code:string order:Vector<InputMedia> = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Bot | InputUser | The bot that owns the Main Mini App. |
| LangCode | string | ISO 639-1 language code, indicating the localization of the previews to reorder. |
| Order | Vector < InputMedia > | New order of the previews. |
Returns
BoolGogram Example
// BotsReorderPreviewMedias - positional arguments result, err := client.BotsReorderPreviewMedias(&tg.InputUserSelf{}, "Hello, World!", &tg.VectorInputMedia{}) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |