set_gift_collection_name()¶
- Client.set_gift_collection_name()¶
Changes name of a gift 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.
name (``str``) – New name of the collection, 1-12 characters.
- Returns:¶
:obj:`~pyrogram.types.GiftCollection` (On success, a updated collection is returned.)
Example
await set_gift_collection_name("me", 123, "My best gifts!")