Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!file_exists('madeline.php')) {
- copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
- }
- $admin = '@MMMM7M';
- include 'madeline.php';
- $MadelineProto = new \danog\MadelineProto\API('session.madeline');
- $MadelineProto->start();
- $user = readline("Enter Username : @");
- $type = readline('Enter type (u/c): ');
- $start = time();
- $x = 0;
- $MadelineProto->messages->sendMessage(['peer' => $admin, 'message' => "~pin: @$user"]);
- do{
- try{
- $MadelineProto->messages->getPeerDialogs(['peers'=> [$user]]);
- echo $user." > ".$x." > ".date('s')."\n";
- $x++;
- }catch(Exception $e){
- if($type == 'c'){
- $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => "h", 'about' => "h" ]);
- $MadelineProto->channels->updateUsername(['channel' => $updates['updates'][1], 'username' => $user, ]);
- $MadelineProto->messages->sendMessage(['peer' => $updates['updates'][1], 'message' => "Done , @$user !"]);
- } else {
- $MadelineProto->account->updateUsername(['username' => $user]);
- }
- echo "Fucked: @$user \n";
- $end = time() - $start;
- $MadelineProto->messages->sendMessage(['peer' => $admin, 'message' => " Username taken : @$user \n Number of clicks: $x \n Time: $end s"]);
- exit;
- }
- }while(true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement