edit_bot_preview_media()¶
- async Client.edit_bot_preview_media()¶
Edit a Main Mini App preview for a bot.
Usable by Users Bots- Parameters:
bot (
int|str) – Unique identifier (int) or username (str) of the target bot.lang_code (
str) – ISO 639-1 language code, indicating the localization of the preview to edit.media (
InputMedia) – The photo/video preview to replace.new_media (
InputMedia) – The new photo/video preview.
- Returns:
BotPreviewMedia– On success, the updated preview media is returned.
Example
preview = await app.edit_bot_preview_media("my_bot", "en", old_media, new_media)