• Replace a sticker in a sticker set with another sticker

    For bots the sticker set must have been created by this bot.

    Parameters

    • client: ITelegramClient
    • sticker: string | RawFullRemoteFileLocation | TypeInputDocument

      TDLib and Bot API compatible File ID, or a TL object representing a sticker to be removed

    • newSticker: InputStickerSetItem

      New sticker to replace the old one with

    • Optionalparams: { progressCallback?: (uploaded: number, total: number) => void }
      • OptionalprogressCallback?: (uploaded: number, total: number) => void

        Upload progress callback

    Returns Promise<StickerSet>

    Modfiied sticker set