Class TdApi.ReorderGiftCollections

Enclosing class:
TdApi

public static class TdApi.ReorderGiftCollections extends TdApi.Function<TdApi.Ok>
Changes order of gift collections. If the collections are owned by a channel chat, then requires canPostMessages administrator right in the channel chat.

Returns Ok

  • Field Details

    • ownerId

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

      public int[] collectionIds
      New order of gift collections.
    • CONSTRUCTOR

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

    • ReorderGiftCollections

      public ReorderGiftCollections()
      Default constructor for a function, which changes order of gift collections. If the collections are owned by a channel chat, then requires canPostMessages administrator right in the channel chat.

      Returns Ok

    • ReorderGiftCollections

      public ReorderGiftCollections(TdApi.MessageSender ownerId, int[] collectionIds)
      Creates a function, which changes order of gift collections. If the collections are owned by a channel chat, then requires canPostMessages administrator right in the channel chat.

      Returns Ok

      Parameters:
      ownerId - Identifier of the user or the channel chat that owns the collection.
      collectionIds - New order of gift collections.
  • 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