9 | 10 | Noob Creator 11 | Support Channel • 12 | Support Chat 13 |
14 | 15 | 16 | ## Deploy 17 | 18 | 19 | [](https://heroku.com/deploy) 20 | -------------------------------------------------------------------------------- /Semx.py: -------------------------------------------------------------------------------- 1 | # CREATED BY @PIROXPOWER || @OpFriDay 2 | 3 | from choot import Var 4 | import logging 5 | import re 6 | import os 7 | import sys 8 | import asyncio 9 | from telethon import TelegramClient, events 10 | import telethon.utils 11 | from telethon.tl import functions 12 | from telethon.tl.functions.channels import LeaveChannelRequest 13 | from asyncio import sleep 14 | from telethon.tl.types import ChatBannedRights, ChannelParticipantsAdmins, ChatAdminRights 15 | from telethon.tl.functions.channels import EditBannedRequest 16 | from datetime import datetime 17 | logging.basicConfig( 18 | format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.INFO 19 | ) 20 | 21 | 22 | Blaze = TelegramClient(None, Var.API_KEY, Var.API_HASH) 23 | Blaze.start(bot_token=Var.TOKEN) 24 | 25 | print("STARTING BANALL BOT SERVER....") 26 | 27 | """ 28 | MOVING TO COMMANDS NOW 29 | """ 30 | 31 | GANDU = [] 32 | for x in Var.OWNER_ID: 33 | GANDU.append(x) 34 | 35 | 36 | @Blaze.on(events.NewMessage(pattern="^/ping")) 37 | async def ping(e): 38 | if e.sender_id in GANDU: 39 | start = datetime.now() 40 | text = "Pong!" 41 | event = await e.reply(text, parse_mode=None, link_preview=None ) 42 | end = datetime.now() 43 | ms = (end-start).microseconds / 1000 44 | await event.edit(f"**I'm Active🔥\nStart Fucking Any Group** \n\n **__ᏢᎾᏁᎶ🏓__ !!** `{ms}` ms") 45 | 46 | """ 47 | RESTART COMMANDS 48 | """ 49 | @Blaze.on(events.NewMessage(pattern="^/restart")) 50 | async def restart(e): 51 | if e.sender_id in GANDU: 52 | text = "Ma Chud Gai Vro🤣...!!!" 53 | await e.reply(text, parse_mode=None, link_preview=None ) 54 | try: 55 | await Blaze.disconnect() 56 | except Exception: 57 | pass 58 | os.execl(sys.executable, sys.executable, *sys.argv) 59 | quit() 60 | 61 | """ 62 | BANALL COMMAND 63 | """ 64 | 65 | @Blaze.on(events.NewMessage(pattern="^/banall")) 66 | async def testing(event): 67 | if event.sender_id in GANDU: 68 | if not event.is_group: 69 | Reply = f"Noob !! Use This Cmd in Group." 70 | await event.reply(Reply, parse_mode=None, link_preview=None ) 71 | else: 72 | await event.delete() 73 | Raichu = await event.get_chat() 74 | RaichUB = await event.client.get_me() 75 | admin = Raichu.admin_rights 76 | creator = Raichu.creator 77 | if not admin and not creator: 78 | await event.reply("I Don't have sufficient Rights !!") 79 | return 80 | await event.reply("**Black Magin Begins...**") 81 | everyone = await event.client.get_participants(event.chat_id) 82 | for user in everyone: 83 | if user.id == RaichUB.id: 84 | pass 85 | try: 86 | await event.client(EditBannedRequest(event.chat_id, int(user.id), ChatBannedRights(until_date=None,view_messages=True))) 87 | except Exception as e: 88 | await event.edit(str(e)) 89 | await sleep(0.3) 90 | 91 | 92 | """ 93 | LEAVE COMMAND 94 | """ 95 | print("Leave Command Soon Currently Am Busy") 96 | print("STARTED SUCCESSFULLY... JOIN @RaichuOfficial") 97 | Blaze.run_until_disconnected() 98 | -------------------------------------------------------------------------------- /app.json: -------------------------------------------------------------------------------- 1 | 2 | { 3 | "name": "Ban All Bot", 4 | "description": "help you to ban the all memebers from the group", 5 | "repository": "https://github.com/TeamRaichu/BanAllBot", 6 | "logo": "https://telegra.ph/file/238bc60ed5cee135acf00.jpg", 7 | "keywords": [ 8 | "python", 9 | "telegram" 10 | ], 11 | "buildpacks": [{ 12 | "url": "heroku/python" 13 | }], 14 | "formation": { 15 | "worker": { 16 | "quantity": 1, 17 | "size": "free" 18 | } 19 | }, 20 | "addons": [ 21 | { 22 | "options": { 23 | "version": "12" 24 | }, 25 | "plan": "heroku-postgresql" 26 | } 27 | ], 28 | "env": { 29 | "TOKEN": { 30 | "description": "Your bot token", 31 | "value": "", 32 | "required": true 33 | }, 34 | "API_KEY": { 35 | "description": "Get from https://my.telegram.org", 36 | "value": "", 37 | "required": true 38 | }, 39 | "API_HASH": { 40 | "description": "Get from https://my.telegram.org", 41 | "value": "", 42 | "required": true 43 | }, 44 | "OWNER_ID": { 45 | "description": "Owner id here.", 46 | "value": "", 47 | "required": true 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /choot.py: -------------------------------------------------------------------------------- 1 | 2 | from decouple import config 3 | from heroku3 import from_key 4 | from os import getenv 5 | 6 | class Var: 7 | API_KEY = config("API_KEY", default=6, cast=int) 8 | API_HASH = config("API_HASH", None) 9 | TOKEN = config("TOKEN", None) 10 | OWNER_ID = list(map(int, getenv("OWNER_ID").split())) 11 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | async-lru==1.0.2 2 | pyaes==1.6.1 3 | PySocks==1.7.1 4 | python-dotenv==0.15.0 5 | Tgcrypto 6 | https://github.com/New-dev0/Telethon/archive/patch-8.zip 7 | python-decouple 8 | heroku3 9 | --------------------------------------------------------------------------------