Link Search Menu Expand Document

Method: channels.updateColor

Back to methods index

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

Parameters:

NameTypeDescriptionRequired
for_profileBoolWhether 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.
Optional
channelUsername, chat ID, Update, Message or InputChannelChannel whose accent color should be changed.Optional
colorintID of the accent color palette » to use (not RGB24, see here » for more info); if not set, the default palette is used.Optional
background_emoji_idlongCustom emoji ID used in the accent color pattern.Optional

Return type: Updates

Can userbots use this method: YES

Can bots use this method: NO

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();

$Updates = $MadelineProto->channels->updateColor(for_profile: $Bool, channel: $InputChannel, color: $int, background_emoji_id: $long, );