Method: account.updateColor
Update the accent color and background custom emoji » of the current account.
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 |
color | int | ID of the accent color palette » to use (not RGB24, see here » for more info). | Optional |
background_emoji_id | long | Custom emoji ID used in the accent color pattern. | Optional |
Return type: Bool
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();
$Bool = $MadelineProto->account->updateColor(for_profile: $Bool, color: $int, background_emoji_id: $long, );