Package org.drinkless.tdlib
Class TdApi.CreateGiftCollection
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.GiftCollection>
org.drinkless.tdlib.TdApi.CreateGiftCollection
- Enclosing class:
- TdApi
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
FieldsModifier and TypeFieldDescriptionstatic final intIdentifier 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.String[]Identifier of the gifts to add to the collection; 0-getOption("gift_collection_size_max") identifiers. -
Constructor Summary
ConstructorsConstructorDescriptionDefault 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 TypeMethodDescriptionintReturns an identifier uniquely determining type of the object.Methods inherited from class org.drinkless.tdlib.TdApi.Function
toString
-
Field Details
-
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. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier 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
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.ObjectReturns an identifier uniquely determining type of the object.- Specified by:
getConstructorin classTdApi.Object- Returns:
- this.CONSTRUCTOR
-