Skip to content

addGiftCollectionGifts

Function · TDLib 1.8.67 · d1085f9c

Adds gifts to the beginning of a previously created collection. If the collection is owned by a channel chat, then requires can_post_messages administrator right in the channel chat. Returns the changed collection

addGiftCollectionGifts(
  owner_id: MessageSender,
  collection_id: int32,
  received_gift_ids: list of string
) → GiftCollection

owner_id

MessageSender

Identifier of the user or the channel chat that owns the collection

collection_id

int32

Identifier of the gift collection

received_gift_ids

list of string

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