Skip to content

replaceStickerInSet

Function · TDLib 1.8.67 · d1085f9c

Replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet

replaceStickerInSet(
  user_id: int53,
  name: string,
  old_sticker: InputFile,
  new_sticker: NewSticker
) → Ok

user_id

int53

Sticker set owner; ignored for regular users

name

string

Sticker set name. The sticker set must be owned by the current user

old_sticker

InputFile

Sticker to remove from the set

new_sticker

NewSticker

Sticker to add to the set