Link Search Menu Expand Document

Method: account.updateColor

Back to methods index

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

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.Optional
colorPeerColorOptional

Return type: Bool

Can users use this method: YES

Can bots use this method: NO

Can bots use this method over a business connection with the businessConnectionId flag: 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: $PeerColor, );