Package org.drinkless.tdlib
Class TdApi.AddGiftCollectionGifts
java.lang.Object
org.drinkless.tdlib.TdApi.Object
org.drinkless.tdlib.TdApi.Function<TdApi.GiftCollection>
org.drinkless.tdlib.TdApi.AddGiftCollectionGifts
- Enclosing class:
- TdApi
Adds gifts to the beginning of a previously created 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 Summary
FieldsModifier and TypeFieldDescriptionintIdentifier of the gift collection.static final intIdentifier uniquely determining type of the object.Identifier of the user or the channel chat that owns the collection.String[]Identifier of the gifts to add to the collection; 1-getOption("gift_collection_size_max") identifiers. -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for a function, which adds gifts to the beginning of a previously created collection.AddGiftCollectionGifts(TdApi.MessageSender ownerId, int collectionId, String[] receivedGiftIds) Creates a function, which adds gifts to the beginning of a previously created collection. -
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 owns the collection. -
collectionId
public int collectionIdIdentifier of the gift collection. -
receivedGiftIds
Identifier of the gifts to add to the collection; 1-getOption("gift_collection_size_max") identifiers. If after addition the collection has more than getOption("gift_collection_size_max") gifts, then the last one are removed from the collection. -
CONSTRUCTOR
public static final int CONSTRUCTORIdentifier uniquely determining type of the object.- See Also:
-
-
Constructor Details
-
AddGiftCollectionGifts
public AddGiftCollectionGifts()Default constructor for a function, which adds gifts to the beginning of a previously created 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 -
AddGiftCollectionGifts
public AddGiftCollectionGifts(TdApi.MessageSender ownerId, int collectionId, String[] receivedGiftIds) Creates a function, which adds gifts to the beginning of a previously created 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 add to the collection; 1-getOption("gift_collection_size_max") identifiers. If after addition the collection has more than getOption("gift_collection_size_max") gifts, then the last one are removed from the collection.
-
-
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
-