Skip to content

createGiftCollection

Function · TDLib 1.8.67 · d1085f9c

Creates a collection from gifts on the current user's or a channel's profile page; requires can_post_messages 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

createGiftCollection(
  owner_id: MessageSender,
  name: string,
  received_gift_ids: list of string
) → GiftCollection

owner_id

MessageSender

Identifier of the user or the channel chat that received the gifts

name

string

Name of the collection; 1-12 characters

received_gift_ids

list of string

Identifier of the gifts to add to the collection; 0-getOption("gift_collection_size_max") identifiers