Layer 224
BotsDeletePreviewMedia
Delete a main mini app preview, see here for more info.
method
Users
bots.deletePreviewMedia#2d0135b3 bot:InputUser lang_code:string media:Vector<InputMedia> = Bool;
Parameters
| Name | Type | Description |
|---|---|---|
| Bot | InputUser | The bot that owns the Main Mini App. |
| LangCode | string | ISO 639-1 language code, indicating the localization of the preview to delete. |
| Media | Vector<InputMedia> | The photo/video preview to delete, previously fetched as specified here. |
Returns
BoolGogram Example
// BotsDeletePreviewMedia - positional arguments result, err := client.BotsDeletePreviewMedia(&tg.InputUserSelf{}, "Hello, World!", []tg.InputMedia{&tg.InputMediaPhoto{ID: &tg.InputPhoto{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01}}}}) if err != nil { // handle error } // result is *tg.Bool
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |