Interface CreateGiftCollection

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. Request type for Tdjson#createGiftCollection.

interface CreateGiftCollection {
    @type: "createGiftCollection";
    name: string;
    owner_id: MessageSender;
    received_gift_ids: string[];
}

Properties

@type: "createGiftCollection"
name: string

Name of the collection; 1-12 characters.

owner_id: MessageSender

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

received_gift_ids: string[]

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