create_gift_collection


Description:

public async GiftCollection create_gift_collection (MessageSender owner_id, string name, ArrayList<string?> received_gift_ids) throws TDLibError

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

Parameters:

owner_id

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

name

Name of the collection; 1-12 characters

received_gift_ids

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