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
| Name | Type | Required | Description |
|---|---|---|---|
Sticker | InputDocumentClass | yes | The sticker |
Emoji | string | — | If set, updates the emoji list associated to the sticker |
MaskCoords | MaskCoords | — | If set, updates the mask coordinates |
Keywords | string | — | If set, updates the sticker keywords (separated by commas). Can't be provided for mask stickers. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | STICKER_INVALID | The provided sticker is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
stickers.changeSticker#f5537ebc