Skip to main content

stickers.changeSticker

Update the keywords, emojis or mask coordinates of a sticker.

func (c *Client) StickersChangeSticker(ctx context.Context, request *StickersChangeStickerRequest) (MessagesStickerSetClass, error)

Calling this method

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

res, err := api.StickersChangeSticker(ctx, &tg.StickersChangeStickerRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // MessagesStickerSetClass
return nil
})

Parameters

NameTypeRequiredDescription
StickerInputDocumentClassyesThe sticker
EmojistringIf set, updates the emoji list associated to the sticker
MaskCoordsMaskCoordsIf set, updates the mask coordinates
KeywordsstringIf set, updates the sticker keywords (separated by commas). Can't be provided for mask stickers.

Returns

MessagesStickerSetClass

Possible errors

CodeTypeDescription
400STICKER_INVALIDThe provided sticker is invalid.

References