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.
func (c *Client) BotsDeletePreviewMedia(ctx context.Context, request *BotsDeletePreviewMediaRequest) (bool, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.BotsDeletePreviewMedia(ctx, &tg.BotsDeletePreviewMediaRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Bot | InputUserClass | yes | The bot that owns the Main Mini App. |
LangCode | string | yes | ISO 639-1 language code, indicating the localization of the preview to delete. |
Media | []InputMediaClass | yes | The photo/video preview to delete, previously fetched as specified here ». |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | BOT_INVALID | This is not a valid bot. |
References
- Official documentation
- Generated Go reference
- TL definition:
bots.deletePreviewMedia#2d0135b3