Advertisement
Guest User

Untitled

a guest
Aug 19th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.45 KB | None | 0 0
  1. <?php
  2. if (isset($update['update']['message']['out']) and $update['update']['message']['out'] == true) return 0;
  3. if (!isset($msg)) return 0;
  4. if ($msg == '/info') {
  5. sm($chatID, "<b>Info chat:</b>\nID: $chatID\nTitolo: $title\nUsername chat: @$chatusername\nTipo: $type\n\n<b>Informazioni utente:</b>\nID: $userID\nNome: $name\nUsername: @$username", 1);
  6. }
  7.  
  8. $admin = array("608640934","192900019","579132285");
  9.  
  10. if (0 === strpos($msg, 'chatid') and in_array($userID, $admin))
  11. {
  12. sm($chatID, $chatID);
  13. }
  14.  
  15.  
  16. if (strpos($msg, 'join') === 0 and in_array($userID, $admin))
  17. {
  18. $gruppo = str_replace('join ', '', $msg);
  19. if (strpos($msg, '@') == false)
  20. {
  21. $domini_telegram = array(
  22. 'https://telegram.me/',
  23. 'http://telegramme/',
  24. 'telegram.me/',
  25. 'https://telegram.dog/',
  26. 'http://telegram.dog/',
  27. 'telegram.dog/',
  28. 'https://t.me/',
  29. 'http://t.me/',
  30. 't.me/',
  31. 'https://joinchat/'
  32. );
  33. $gruppo = str_replace($domini_telegram, '', $gruppo);
  34. if (strpos($gruppo, 'joinchat') === 0)
  35. {
  36. $gruppo = str_replace('joinchat/', '', $gruppo);
  37. }
  38. else
  39. {
  40. $gruppo = '@' . $gruppo;
  41. }
  42. }
  43. if (strpos($gruppo, '@') === 0)
  44. {
  45. $MadelineProto->channels->joinChannel(['channel' => $gruppo]);
  46. }
  47. else
  48. {
  49. $MadelineProto->messages->importChatInvite(['hash' => $gruppo]);
  50. }
  51. $MadelineProto->messages->sendMessage(['peer' => $chatID, 'message' => 'Sono entrato in ' . str_replace('.join ', '', $msg) ]);
  52. }
  53.  
  54.  
  55.  
  56. if (0 === strpos($msg, 'leave') and in_array($userID, $admin))
  57. {
  58. $MadelineProto->messages->sendMessage(['peer' => $chatID, 'message' => "Bye!"]);
  59. $MadelineProto->channels->leaveChannel(['channel' => $chatID, ]);
  60. }
  61.  
  62.  
  63.  
  64. if (0 === strpos($msg, 'on') and in_array($userID, $admin))
  65. {
  66. $MadelineProto->messages->sendMessage(['peer' => $chatID, 'message' => "Bot online!"]);
  67. }
  68.  
  69.  
  70.  
  71.  
  72.  
  73. if (0 === strpos($msg, 'bot') and in_array($userID, $admin))
  74. {
  75. $gr = str_replace('bot', "", $msg);
  76. $MadelineProto->channels->joinChannel(['channel' => $gr]);
  77. $MadelineProto->channels->inviteToChannel(['channel' => $gr, 'users' => ['@marianudabot',"@marianuda1bot","@Marianuda2bot","@Marianuda3bot","@Marianuda4bot","@marianuda5bot","marianuda6bot","@marianuda7bot","@marianuda8bot","@marianuda9bot","marianuda10bot","@Marianuda11bot"], ]);
  78. $MadelineProto->messages->sendMessage(['peer' => $gr, 'message' => "/command1"]);
  79. sleep(2);
  80. $MadelineProto->channels->leaveChannel(['channel' => $gr, ]);
  81. }
  82.  
  83.  
  84.  
  85. if (strpos($msg, 'spambot') === 0 and in_array($userID, $admin))
  86. {
  87. sm(178220800, "/start");
  88. }
  89. $idchat = "-1001174432707"; //mettere l'id della chat dove il bot mandera il resoconto
  90. if (stripos($msg, "Buone notizie") === 0 and $userID == 178220800)
  91. {
  92. sm($idchat, "Non sono limitato.");
  93. }
  94. if (stripos($msg, "Caro") === 0 and $userID == 178220800)
  95. {
  96. sm($idchat, "Sono limitato.");
  97. }
  98.  
  99.  
  100.  
  101. if (strpos($msg, '!nonno') === 0 and in_array($userID, $admin))
  102. {
  103. $gigi = explode(" ", $msg, 3);
  104. $max = $gigi[1];
  105. $testo = $gigi[2];
  106.  
  107. sm($chatID, "<b>Inizio spam</b>", 1);
  108. for ($x=1; $x<=$max; $x++) {
  109. sm(@StrangerBot, "/start");
  110. sleep(2);
  111. sm(@StrangerBot, $testo); //Inserisci il messaggio da spammare
  112. sleep(2);
  113. sm(@StrangerBot, "/end");
  114. sleep(2);
  115. sm(@Chatincognitobot,"/nextchat");
  116. sleep(2);
  117. sm(@Chatincognitobot, $testo);
  118. sleep(3);
  119. sm(@Anonimechatbot, "/newchat");
  120. sleep(2);
  121. sm(@anonimechatbot, $testo);
  122. sleep(2);
  123. sm(@anonimechatbot, "/end");
  124. sm(@randobot, "/next");
  125. sleep(2);
  126. sm(@Randobot, $testo);
  127. sm(@Xstrangerbot, "/next");
  128. sleep(2);
  129. sm(@Xstrangerbot, $testo);
  130. }
  131. sm($chatID, '<b>Spam finito.</b>');
  132. }
  133.  
  134.  
  135. if (strpos($msg, '!scrivimi') === 0 and in_array($userID, $admin))
  136. {
  137. sm(608640934, "Cretina!!");
  138. }
  139.  
  140.  
  141. if (strpos($msg, 'Spa') === 0 and in_array($userID, $admin))
  142. {
  143. $gigi = explode(" ", $msg, 3);
  144. $max = $gigi[1];
  145. $testo = $gigi[2];
  146.  
  147. sm($chatID, "<b>Inizio spam</b>", 1);
  148. for ($x=1; $x<=$max; $x++) {
  149. sm(@StrangerBot, "/start");
  150. sm(@Chatincognitobot,"/nextchat");
  151. sm(@randobot, "/next");
  152. sm(@Xstrangerbot, "/next");
  153. sleep(5);
  154. sm(@StrangerBot, $testo); //Inserisci il messaggio da spammare
  155. sm(@Chatincognitobot, $testo);
  156. sm(@Randobot, $testo);
  157. sm(@Xstrangerbot, $testo);
  158. sleep(1);
  159. sm(@StrangerBot, "/end");
  160. }
  161. sm($chatID, '<b>Spam finito.</b>');
  162. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement