Link Search Menu Expand Document

Method: account.updateColor

Back to methods index

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


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.Optional
colorintID of the accent color palette » to use (not RGB24, see here » for more info).Optional
background_emoji_idlongCustom emoji ID used in the accent color pattern.Optional

Return type: Bool

Can bots use this method: NO

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

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

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

$Bool = $MadelineProto->account->updateColor(for_profile: $Bool, color: $int, background_emoji_id: $long, );