Back to methods index
Delete contacts by phone number
Parameters:
Name
| Type
| Description
| Required
|
---|
phones
| Array of
string
| Phone numbers
| Yes
|
Return type:
Bool
Can bots use this method:
NO
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
->
contacts
->
deleteByPhones
(
phones
:
[
'string'
,
'string'
],
);