bots.editPreviewMedia
Edit a main mini app preview, see here » for more info.
Edit a [main mini app preview, see here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews) for more info.
| Name | Type | Required | Description |
|---|---|---|---|
bot | InputUser | Yes | The bot that owns the Main Mini App. |
lang_code | string | Yes | ISO 639-1 language code, indicating the localization of the preview to edit. |
media | InputMedia | Yes | The photo/video preview to replace, previously fetched as specified [here »](https://core.telegram.org/api/bots/webapps.md#main-mini-app-previews). |
new_media | InputMedia | Yes | The new photo/video preview, uploaded using [messages.uploadMedia](https://core.telegram.org/method/messages.uploadMedia.md). |
Replies
BotPreviewMedia
MTProto RPC
- 400 · BOT_INVALID — This is not a valid bot.