reorder_collection_gifts()¶
- Client.reorder_collection_gifts()¶
Changes order of gifts in a collection.
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”.
collection_id (``int``) – Identifier of the gift collection.
gift_ids (List of ``str``) – Identifier of the gifts to move to the beginning of the collection. All other gifts are placed in the current order after the specified gifts
- Returns:¶
:obj:`~pyrogram.types.GiftCollection` (On success, a updated collection is returned.)
Example
await app.reorder_collection_gifts("me", 123, ["https://t.me/nft/NekoHelmet-9215", "https://t.me/nft/JellyBunny-729"])