Class TdApi.DeleteGiftCollection

Enclosing class:
TdApi

public static class TdApi.DeleteGiftCollection extends TdApi.Function<TdApi.Ok>
Deletes a gift collection. If the collection is 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.
    • collectionId

      public int collectionId
      Identifier of the gift collection.
    • CONSTRUCTOR

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

    • DeleteGiftCollection

      public DeleteGiftCollection()
      Default constructor for a function, which deletes a gift collection. If the collection is owned by a channel chat, then requires canPostMessages administrator right in the channel chat.

      Returns Ok

    • DeleteGiftCollection

      public DeleteGiftCollection(TdApi.MessageSender ownerId, int collectionId)
      Creates a function, which deletes a gift collection. If the collection is 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.
      collectionId - Identifier of the gift collection.
  • 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