create_gift_collection()¶
- Client.create_gift_collection()¶
Creates a collection from gifts on the current user’s or a channel’s profile page.
Usable by Users Bots
- Parameters:¶
owner_id (``int`` | ``str``) – Unique identifier (int) or username (str) of the target chat. For your personal cloud (Saved Messages) you can simply use “me” or “self”.
name (``str``) – Name of the collection, 1-12 characters.
gift_ids (List of ``str``) – Identifier of the gifts to add to the collection.
- Returns:¶
:obj:`~pyrogram.types.GiftCollection` (On success, a created collection is returned.)
Example
await create_gift_collection("me", "My best gifts!", ["https://t.me/nft/NekoHelmet-9215"])