Layer 220
BotsEditPreviewMedia
Edit a main mini app preview, see here for more info.
method
Users
Business
bots.editPreviewMedia#8525606f bot:InputUser lang_code:string media:InputMedia new_media:InputMedia = BotPreviewMedia;
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 preview to edit. |
| Media | InputMedia | The photo/video preview to replace, previously fetched as specified here. |
| NewMedia | InputMedia | The new photo/video preview, uploaded using messages. upload Media. |
Returns
BotPreviewMediaPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
Gogram Example
// BotsEditPreviewMedia - positional arguments result, err := client.BotsEditPreviewMedia(&tg.InputUserSelf{}, "...", &tg.InputMediaPhoto{ID: &tg.InputPhoto{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}}, &tg.InputMediaPhoto{ID: &tg.InputPhoto{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}}}) if err != nil { // handle error } // result is *tg.BotPreviewMedia