Method: channels.updateColor
Update the accent color and background custom emoji » of a channel.
Parameters:
Name | Type | Description | Required |
---|---|---|---|
for_profile | Bool | Whether to change the accent color emoji pattern of the profile page; otherwise, the accent color and emoji pattern of messages will be changed. | Optional |
channel | Username, chat ID, Update, Message or InputChannel | Channel whose accent color should be changed. | Optional |
color | int | ID 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_id | long | Custom emoji ID used in the accent color pattern. | Optional |
Return type: Updates
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, );