-
Notifications
You must be signed in to change notification settings - Fork 0
/
followers.php
32 lines (32 loc) · 1010 Bytes
/
followers.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
32
<?php
$config = json_decode(file_get_contents('config.json'),1);
$id = $config['id'];
$token = $config['token'];
include 'index.php';
$accounts = json_decode(file_get_contents('accounts.json'),1);
$id = $config['words'];
$file = $config['for'];
$a = file_exists('a') ? file_get_contents('a') : 'ap';
if($a == 'new'){
file_put_contents($file, '');
}
$from = 'Followers';
$mid = bot('sendMessage',[
'chat_id'=>$config['id'],
'message_id'=>$mid,
'text'=>"*Collection From* ~ [ _ $from _ ]\n\n*Status* ~> _ Working _\n*Users* ~> _ ".count(explode("\n", file_get_contents($file)))."_",
'parse_mode'=>'markdown',
'reply_markup'=>json_encode(['inline_keyboard'=>[
[['text'=>'Stop.','callback_data'=>'stopgr']]
]])
])->result->message_id;
$ids = explode(' ', $config['words']);
foreach($ids as $user){
echo $user."\n";
sleep(5);
$cookies = $accounts[$file];
$ig = new ig(['account'=>$accounts[$file],'file'=>$file]);
$info = $ig->getInfo($user);
$id = $info->pk;
$ig->getFollowers($id,$mid,$user);
}