Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($update['update']['message']['out']) and $update['update']['message']['out'] == true) return 0;
- if (!isset($msg)) return 0;
- if ($msg == '/info') {
- 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);
- }
- $admin = array("608640934","192900019","579132285");
- if (0 === strpos($msg, 'chatid') and in_array($userID, $admin))
- {
- sm($chatID, $chatID);
- }
- if (strpos($msg, 'join') === 0 and in_array($userID, $admin))
- {
- $gruppo = str_replace('join ', '', $msg);
- if (strpos($msg, '@') == false)
- {
- $domini_telegram = array(
- 'https://telegram.me/',
- 'http://telegramme/',
- 'telegram.me/',
- 'https://telegram.dog/',
- 'http://telegram.dog/',
- 'telegram.dog/',
- 'https://t.me/',
- 'http://t.me/',
- 't.me/',
- 'https://joinchat/'
- );
- $gruppo = str_replace($domini_telegram, '', $gruppo);
- if (strpos($gruppo, 'joinchat') === 0)
- {
- $gruppo = str_replace('joinchat/', '', $gruppo);
- }
- else
- {
- $gruppo = '@' . $gruppo;
- }
- }
- if (strpos($gruppo, '@') === 0)
- {
- $MadelineProto->channels->joinChannel(['channel' => $gruppo]);
- }
- else
- {
- $MadelineProto->messages->importChatInvite(['hash' => $gruppo]);
- }
- $MadelineProto->messages->sendMessage(['peer' => $chatID, 'message' => 'Sono entrato in ' . str_replace('.join ', '', $msg) ]);
- }
- if (0 === strpos($msg, 'leave') and in_array($userID, $admin))
- {
- $MadelineProto->messages->sendMessage(['peer' => $chatID, 'message' => "Bye!"]);
- $MadelineProto->channels->leaveChannel(['channel' => $chatID, ]);
- }
- if (0 === strpos($msg, 'on') and in_array($userID, $admin))
- {
- $MadelineProto->messages->sendMessage(['peer' => $chatID, 'message' => "Bot online!"]);
- }
- if (0 === strpos($msg, 'bot') and in_array($userID, $admin))
- {
- $gr = str_replace('bot', "", $msg);
- $MadelineProto->channels->joinChannel(['channel' => $gr]);
- $MadelineProto->channels->inviteToChannel(['channel' => $gr, 'users' => ['@marianudabot',"@marianuda1bot","@Marianuda2bot","@Marianuda3bot","@Marianuda4bot","@marianuda5bot","marianuda6bot","@marianuda7bot","@marianuda8bot","@marianuda9bot","marianuda10bot","@Marianuda11bot"], ]);
- $MadelineProto->messages->sendMessage(['peer' => $gr, 'message' => "/command1"]);
- sleep(2);
- $MadelineProto->channels->leaveChannel(['channel' => $gr, ]);
- }
- if (strpos($msg, 'spambot') === 0 and in_array($userID, $admin))
- {
- sm(178220800, "/start");
- }
- $idchat = "-1001174432707"; //mettere l'id della chat dove il bot mandera il resoconto
- if (stripos($msg, "Buone notizie") === 0 and $userID == 178220800)
- {
- sm($idchat, "Non sono limitato.");
- }
- if (stripos($msg, "Caro") === 0 and $userID == 178220800)
- {
- sm($idchat, "Sono limitato.");
- }
- if (strpos($msg, '!nonno') === 0 and in_array($userID, $admin))
- {
- $gigi = explode(" ", $msg, 3);
- $max = $gigi[1];
- $testo = $gigi[2];
- sm($chatID, "<b>Inizio spam</b>", 1);
- for ($x=1; $x<=$max; $x++) {
- sm(@StrangerBot, "/start");
- sleep(2);
- sm(@StrangerBot, $testo); //Inserisci il messaggio da spammare
- sleep(2);
- sm(@StrangerBot, "/end");
- sleep(2);
- sm(@Chatincognitobot,"/nextchat");
- sleep(2);
- sm(@Chatincognitobot, $testo);
- sleep(3);
- sm(@Anonimechatbot, "/newchat");
- sleep(2);
- sm(@anonimechatbot, $testo);
- sleep(2);
- sm(@anonimechatbot, "/end");
- sm(@randobot, "/next");
- sleep(2);
- sm(@Randobot, $testo);
- sm(@Xstrangerbot, "/next");
- sleep(2);
- sm(@Xstrangerbot, $testo);
- }
- sm($chatID, '<b>Spam finito.</b>');
- }
- if (strpos($msg, '!scrivimi') === 0 and in_array($userID, $admin))
- {
- sm(608640934, "Cretina!!");
- }
- if (strpos($msg, 'Spa') === 0 and in_array($userID, $admin))
- {
- $gigi = explode(" ", $msg, 3);
- $max = $gigi[1];
- $testo = $gigi[2];
- sm($chatID, "<b>Inizio spam</b>", 1);
- for ($x=1; $x<=$max; $x++) {
- sm(@StrangerBot, "/start");
- sm(@Chatincognitobot,"/nextchat");
- sm(@randobot, "/next");
- sm(@Xstrangerbot, "/next");
- sleep(5);
- sm(@StrangerBot, $testo); //Inserisci il messaggio da spammare
- sm(@Chatincognitobot, $testo);
- sm(@Randobot, $testo);
- sm(@Xstrangerbot, $testo);
- sleep(1);
- sm(@StrangerBot, "/end");
- }
- sm($chatID, '<b>Spam finito.</b>');
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement