channels.UpdateColor

class pyrogram.raw.functions.channels.UpdateColor

Update the accent color and background custom emoji » of a channel.

Details:
  • Layer: 223

  • ID: D8AA3671

Parameters:
  • channel (InputChannel) – Channel whose accent color should be changed.

  • 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. Channels can change both message and profile palettes; supergroups can only change the profile palette, of course after reaching the appropriate boost level.

  • color (int 32-bit, optional) – ID of the accent color palette » to use (not RGB24, see here » for more info); if not set, the default palette is used.

  • background_emoji_id (int 64-bit, optional) – Custom emoji ID used in the accent color pattern.

Returns:

Updates

TL Schema

channels.updateColor#d8aa3671
flags:#
for_profile:flags.1?true
channel:InputChannel
color:flags.2?int
background_emoji_id:flags.0?long

= Updates

Parameter Tree

UpdateColor
├── for_profiletrue (optional)
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── colorint (optional)
└── background_emoji_idlong (optional)

Example

await app.invoke(
    UpdateColor(
        for_profile=None,
        channel=await app.resolve_channel(chat_id),
        color=0,
        background_emoji_id=0,
    )
)