Layer 220
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
Flags # Flags, see TL conditional fields
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.

Possible Errors

Code Type Description
400 STICKER_INVALID The provided sticker is invalid.

Gogram Example

// StickersChangeSticker - using Params struct
result, err := client.StickersChangeSticker(&tg.StickersChangeStickerParams{
    Sticker: &tg.InputDocument{ID: int64(0), AccessHash: int64(0), FileReference: []byte{}},

    // Optional fields:
    // Emoji: "...",
    // MaskCoords: &tg.MaskCoords{},
    // Keywords: "...",
})
if err != nil {
    // handle error
}
// result is *tg.MessagesStickerSet