Layer 224
StickersChangeSticker
Update the keywords, emojis or mask coordinates of a sticker.
method
Users
Bots
stickers.changeSticker#f5537ebc flags:# sticker:InputDocument emoji:flags.0?string mask_coords:flags.1?MaskCoords keywords:flags.2?string = messages.StickerSet;
Parameters
| Name | Type | Description |
|---|---|---|
| Sticker | InputDocument | The sticker |
| Emoji | flags.0?string | If set, updates the emoji list associated to the sticker |
| MaskCoords | flags.1?MaskCoords | If set, updates the mask coordinates |
| Keywords | flags.2?string | If set, updates the sticker keywords (separated by commas). Can't be provided for mask stickers. |
Returns
messages.StickerSetGogram Example
// StickersChangeSticker - using Params struct result, err := client.StickersChangeSticker(&tg.StickersChangeStickerParams{ Sticker: &tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, // Optional fields: // Emoji: "Hello, World!", // MaskCoords: &tg.MaskCoords{}, // Keywords: "Hello, World!", }) if err != nil { // handle error } // result is *tg.MessagesStickerSet
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | STICKER_INVALID | The provided sticker is invalid. |