Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.95 KB | None | 0 0
  1. <?php
  2.  
  3. $Token = '';
  4.  
  5. $api = 'https://api.telegram.org/bot'.$Token;
  6.  
  7. function sendMessage($user_id, $testo){
  8.  
  9. $url = $GLOBALS['api'].'/sendMessage?chat_id='.$user_id.'&parse_mode=HTML&text='.urlencode($testo);
  10.  
  11. file_get_contents($url);
  12. }
  13.  
  14. $update = file_get_contents('php://input');
  15. $update = json_decode($update, TRUE);
  16.  
  17. $nome = $update['message']['from']['first_name'];
  18. $user_id = $update['message']['from']['id'];
  19. $cognome = $update['message']['from']['last_name'];
  20. $text = $update['message']['text'];
  21. $username = $update['message']['from']['username'];
  22. $query = $update['callback_query'];
  23. $queryid = $query['id'];
  24. $queryUserId = $query['from']['id'];
  25. $queryusername = $query['from']['username'];
  26. $querydata = $query['data'];
  27. $querymsgid = $query['message']['message_id'];
  28. $inlinequery = $update['inline_query'];
  29. $inlineid = $inlinequery['id'];
  30. $inlineUserId = $inlinequery['from']['id'];
  31. $inlinequerydata = $inlinequery['query'];
  32. $chat_id_query = $update['callback_query']['from']['id'];
  33. $nome_query = $update['callback_query']['from']['first_name'];
  34. $cognome_query = $update['callback_query']['from']['last_name'];
  35.  
  36.     $passw = 'password';
  37.     $usern = '';
  38.     $link1 = "<a href='google.com'>Link Promo 1</a>";
  39.     $link2 = '';
  40.     $email = '';
  41.     $i = 1;
  42.  
  43.     if($text == '/account'){
  44.     for($i = 0, $n = rand(7, 11); $i < $n; $i++){
  45.     $usern .= chr(rand(97,122));
  46.     }
  47.     for($i = 0, $n = rand(7, 11); $i < $n; $i++){
  48.   $email .= chr(rand(97,122));
  49.   }
  50.     SendMessage($user_id,'<pre>'.$usern.'</pre>'.'\n'.'<pre>'.$email.'@hi2.in'.'</pre>'.';'.'<pre>'.$passw.'</pre>');
  51.     }
  52.  
  53.  
  54.     if($text == '/accountplus'){
  55.     $accountplus = $usern.$i;
  56.     SendMessage($user_id,'<pre>'.$usernplus.'</pre>');
  57.     $i++;
  58.     }
  59.  
  60.     if($text == '/reset'){
  61.     SendMessage($user_id,'Username Aggiuntivi Resettati');
  62.     $i = 0;
  63.     }
  64.    
  65.     if($text == '/link'){
  66.         SendMessage($user_id, $link1."\n".$link2);
  67.     }
  68. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement