delete_bot_preview_media()¶
- async Client.delete_bot_preview_media()¶
Delete Main Mini App previews 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 delete.media (List of
InputMedia) – The photo/video previews to delete.
- Returns:
bool– On success, True is returned.
Example
await app.delete_bot_preview_media("my_bot", "en", [media1, media2])