bots.deletePreviewMedia #

Delete a main mini app preview, see here » for more info.

Only owners of bots with a configured Main Mini App can use this method, see see here » for more info on how to check if you can invoke this method.

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
bots.deletePreviewMedia#2d0135b3 bot:InputUser lang_code:string media:Vector<InputMedia> = Bool;

Parameters #

NameTypeDescription
botInputUserThe bot that owns the Main Mini App.
lang_codestringISO 639-1 language code, indicating the localization of the preview to delete.
mediaVector<InputMedia>The photo/video preview to delete, previously fetched as specified here ».

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400BOT_INVALIDThis is not a valid bot.

Mini Apps on Telegram #

Bots can offer users interactive HTML5 web apps to completely replace any website.