Method: contacts.deleteContact
Back to methods index
Parameters:
Can bots use this method: YES
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();
$contacts.Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]);
Or, if you're into Lua:
contacts.Link = contacts.deleteContact({id=InputUser, })
Errors
Code |
Type |
Description |
400 |
CONTACT_ID_INVALID |
The provided contact ID is invalid |