Class TdApi.CreateGiftCollection

Enclosing class:
TdApi

public static class TdApi.CreateGiftCollection extends TdApi.Function<TdApi.GiftCollection>
Creates a collection from gifts on the current user's or a channel's profile page; requires canPostMessages administrator right in the channel chat. An owner can have up to getOption("gift_collection_count_max") gift collections. The new collection will be added to the end of the gift collection list of the owner. Returns the created collection.

Returns GiftCollection

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Identifier uniquely determining type of the object.
    Name of the collection; 1-12 characters.
    Identifier of the user or the channel chat that received the gifts.
    Identifier of the gifts to add to the collection; 0-getOption("gift_collection_size_max") identifiers.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor for a function, which creates a collection from gifts on the current user's or a channel's profile page; requires canPostMessages administrator right in the channel chat.
    CreateGiftCollection(TdApi.MessageSender ownerId, String name, String[] receivedGiftIds)
    Creates a function, which creates a collection from gifts on the current user's or a channel's profile page; requires canPostMessages administrator right in the channel chat.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns an identifier uniquely determining type of the object.

    Methods inherited from class org.drinkless.tdlib.TdApi.Function

    toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • ownerId

      public TdApi.MessageSender ownerId
      Identifier of the user or the channel chat that received the gifts.
    • name

      public String name
      Name of the collection; 1-12 characters.
    • receivedGiftIds

      public String[] receivedGiftIds
      Identifier of the gifts to add to the collection; 0-getOption("gift_collection_size_max") identifiers.
    • CONSTRUCTOR

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

    • CreateGiftCollection

      public CreateGiftCollection()
      Default constructor for a function, which creates a collection from gifts on the current user's or a channel's profile page; requires canPostMessages administrator right in the channel chat. An owner can have up to getOption("gift_collection_count_max") gift collections. The new collection will be added to the end of the gift collection list of the owner. Returns the created collection.

      Returns GiftCollection

    • CreateGiftCollection

      public CreateGiftCollection(TdApi.MessageSender ownerId, String name, String[] receivedGiftIds)
      Creates a function, which creates a collection from gifts on the current user's or a channel's profile page; requires canPostMessages administrator right in the channel chat. An owner can have up to getOption("gift_collection_count_max") gift collections. The new collection will be added to the end of the gift collection list of the owner. Returns the created collection.

      Returns GiftCollection

      Parameters:
      ownerId - Identifier of the user or the channel chat that received the gifts.
      name - Name of the collection; 1-12 characters.
      receivedGiftIds - Identifier of the gifts to add to the collection; 0-getOption("gift_collection_size_max") identifiers.
  • 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