set_upgraded_gift_colors()¶
- async Client.set_upgraded_gift_colors()¶
Take the colors of an upgraded gift you own as your account colors.
Unlike
set_chat_accent_color(), which takes a palette identifier, this takes the identifier of a collectible and is accepted for your own account only.Requires a Premium account; Telegram answers
[403 PREMIUM_ACCOUNT_REQUIRED]otherwise.Usable by Users Bots- Parameters:
upgraded_gift_colors_id (
int) – Identifier of the upgraded gift whose colors to wear.for_profile (
bool, optional) – Pass True to change the profile color instead of the message accent color.
- Returns:
bool– On success, True is returned.
Example
await app.set_upgraded_gift_colors(gift.owned_gift_id)