Class TdApi.ReorderGiftCollectionGifts

Enclosing class:
TdApi

public static class TdApi.ReorderGiftCollectionGifts extends TdApi.Function<TdApi.GiftCollection>
Changes order of gifts in a collection. If the collection is owned by a channel chat, then requires canPostMessages administrator right in the channel chat. Returns the changed collection.

Returns GiftCollection

  • Field Details

    • ownerId

      public TdApi.MessageSender ownerId
      Identifier of the user or the channel chat that owns the collection.
    • collectionId

      public int collectionId
      Identifier of the gift collection.
    • receivedGiftIds

      public String[] receivedGiftIds
      Identifier of the gifts to move to the beginning of the collection. All other gifts are placed in the current order after the specified gifts.
    • CONSTRUCTOR

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

    • ReorderGiftCollectionGifts

      public ReorderGiftCollectionGifts()
      Default constructor for a function, which changes order of gifts in a collection. If the collection is owned by a channel chat, then requires canPostMessages administrator right in the channel chat. Returns the changed collection.

      Returns GiftCollection

    • ReorderGiftCollectionGifts

      public ReorderGiftCollectionGifts(TdApi.MessageSender ownerId, int collectionId, String[] receivedGiftIds)
      Creates a function, which changes order of gifts in a collection. If the collection is owned by a channel chat, then requires canPostMessages administrator right in the channel chat. Returns the changed collection.

      Returns GiftCollection

      Parameters:
      ownerId - Identifier of the user or the channel chat that owns the collection.
      collectionId - Identifier of the gift collection.
      receivedGiftIds - Identifier of the gifts to move to the beginning of the collection. All other gifts are placed in the current order after the specified gifts.
  • 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