Link Search Menu Expand Document

Method: 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_descriptionstringCustom description for the verification, the UTF-8 length limit for this field is contained in bot_verification_description_length_limit ».
If not set, Was verified by organization "organization_name" will be used as description.
Optional

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: 'string', );