Skip to content
bots.setCustomVerification

bots.setCustomVerification

Back to methods index

Verify a user or chat on behalf of an organization Β».

Parameters:

NameTypeDescriptionRequired
enabledBoolIf set, adds the verification; otherwise removes verification.Optional
botUsername, chat ID, Update, Message or InputUserMust not be set if invoked by a bot, must be set to the ID of an owned bot if invoked by a user.Optional
peerUsername, chat ID, Update, Message or InputPeerThe peer to verifyOptional
custom_descriptionTextWithEntitiesOptional

Return type: Bool

Can users use this method: YES

Can bots use this method: YES

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->bots->setCustomVerification(enabled: $Bool, bot: $InputUser, peer: $InputPeer, custom_description: $TextWithEntities, );