account.UpdateColor

class pyrogram.raw.functions.account.UpdateColor

Update the accent color and background custom emoji » of the current account.

Details:
  • Layer: 223

  • ID: 684D214E

Parameters:
  • for_profile (bool, optional) – Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed.

  • color (PeerColor, optional) – ID of the accent color palette » to use (not RGB24, see here » for more info).

Returns:

bool

TL Schema

account.updateColor#684d214e
flags:#
for_profile:flags.1?true
color:flags.2?PeerColor

= Bool

Parameter Tree

UpdateColor
├── for_profiletrue (optional)
└── colorPeerColor (optional)
├── PeerColor
│ ├── colorint (optional)
│ └── background_emoji_idlong (optional)
│ ├── collectible_idlong
│ ├── gift_emoji_idlong
│ ├── background_emoji_idlong
│ ├── accent_colorint
│ ├── colorsVector < int >
│ ├── dark_accent_colorint (optional)
│ └── dark_colorsVector < int > (optional)
└── collectible_idlong

Example

await app.invoke(
    UpdateColor(
        for_profile=None,
        color=PeerColor(
            color=None,
            background_emoji_id=None
        ),
    )
)