Layer 227
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 - positional arguments result, err := client.StickersChangeSticker(&tg.InputDocument{ID: int64(5678901234567890), AccessHash: int64(1234567890123456), FileReference: []byte{0x01, 0x02}}, "Hello, World!", nil, "Hello, World!") if err != nil { // handle error } // result is *tg.MessagesStickerSet
Possible Errors
| Code | Type | Description |
|---|---|---|
| 400 | STICKER_INVALID | The provided sticker is invalid. |