Skip to main content

stickers.removeStickerFromSet

Remove a sticker from the set where it belongs. The sticker set must have been created by the current user/bot.

func (c *Client) StickersRemoveStickerFromSet(ctx context.Context, sticker InputDocumentClass) (MessagesStickerSetClass, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.StickersRemoveStickerFromSet(ctx, sticker)
if err != nil {
return err
}
_ = res // MessagesStickerSetClass
return nil
})

Parameters

NameTypeRequiredDescription
StickerInputDocumentClassyesThe sticker to remove

Returns

MessagesStickerSetClass

Possible errors

CodeTypeDescription
400STICKER_INVALIDThe provided sticker is invalid.

References