Method: bots.setCustomVerification
Verify a user or chat on behalf of an organization ».
Parameters:
Name | Type | Description | Required |
---|---|---|---|
enabled | Bool | If set, adds the verification; otherwise removes verification. | Optional |
bot | Username, chat ID, Update, Message or InputUser | Must not be set if invoked by a bot, must be set to the ID of an owned bot if invoked by a user. | Optional |
peer | Username, chat ID, Update, Message or InputPeer | The peer to verify | Optional |
custom_description | string | Custom 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', );