Class TdApi.ReplaceStickerInSet

Enclosing class:
TdApi

public static class TdApi.ReplaceStickerInSet extends TdApi.Function<TdApi.Ok>
Replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet.

Returns Ok

  • Field Details

    • userId

      public long userId
      Sticker set owner; ignored for regular users.
    • name

      public String name
      Sticker set name. The sticker set must be owned by the current user.
    • oldSticker

      public TdApi.InputFile oldSticker
      Sticker to remove from the set.
    • newSticker

      public TdApi.InputSticker newSticker
      Sticker to add to the set.
    • CONSTRUCTOR

      public static final int CONSTRUCTOR
      Identifier uniquely determining type of the object.
      See Also:
  • Constructor Details

    • ReplaceStickerInSet

      public ReplaceStickerInSet()
      Default constructor for a function, which replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet.

      Returns Ok

    • ReplaceStickerInSet

      public ReplaceStickerInSet(long userId, String name, TdApi.InputFile oldSticker, TdApi.InputSticker newSticker)
      Creates a function, which replaces existing sticker in a set. The function is equivalent to removeStickerFromSet, then addStickerToSet, then setStickerPositionInSet.

      Returns Ok

      Parameters:
      userId - Sticker set owner; ignored for regular users.
      name - Sticker set name. The sticker set must be owned by the current user.
      oldSticker - Sticker to remove from the set.
      newSticker - Sticker to add to the set.
  • Method Details

    • getConstructor

      public int getConstructor()
      Description copied from class: TdApi.Object
      Returns an identifier uniquely determining type of the object.
      Specified by:
      getConstructor in class TdApi.Object
      Returns:
      this.CONSTRUCTOR