-
Notifications
You must be signed in to change notification settings - Fork 2
/
delete_dm.php
31 lines (28 loc) · 868 Bytes
/
delete_dm.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
function send($type, $cookie, $id = null){
$url = "https://api.insta-follow.id/ig/$type.php?cookie=$cookie";
$url .= ($id) ? "&id=$id" : "";
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
return json_decode($response);
}
echo "+++ Auto Delete All DM Instagram +++\n";
$cookie = urlencode(readline("Cookie: "));
echo "Getting List DM ... ";
$list = send('dm', $cookie);
echo "[DONE]\n";
$sleep = readline("Sleep: ");
foreach ($list as $id) {
$delete = send('delete', $cookie, $id);
if($delete->status === "ok"){
echo "$id [SUCCESS]\n";
}else{
echo "$id [FAIL]\n";
}
echo "Sleep $sleep seconds ...\n";
sleep($sleep);
}