Add 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.
botPreviewMedia#23e91ba3 date:int media:MessageMedia = BotPreviewMedia;
---functions---
bots.addPreviewMedia#17aeb75a bot:InputUser lang_code:string media:InputMedia = BotPreviewMedia;
Name | Type | Description |
---|---|---|
bot | InputUser | The bot that owns the Main Mini App. |
lang_code | string | ISO 639-1 language code, indicating the localization of the preview to add. |
media | InputMedia | The photo/video preview, uploaded using messages.uploadMedia. |
Code | Type | Description |
---|---|---|
400 | BOT_INVALID | This is not a valid bot. |
Upload a file and associate it to a chat (without actually sending it to the chat)
Bots can offer users interactive HTML5 web apps to completely replace any website.