"`Runs to Thanos`", "`Runs far, far away from earth`", "`Running faster than usian bolt coz I'mma Bot`", "`Runs to Marie`", "`This Group is too cancerous to deal with.`", "`Cya bois`", "`I am a mad person. Plox Ban me.`", "`I go away`", "`I am just walking off, coz me is too fat.`", ] PRO_STRINGS = [ "`Pros here -_- Time to Leave`", ] @borg.on(phantom_cmd(pattern="run ?(.*)")) @borg.on(sudo_cmd(pattern="run ?(.*)", allow_sudo=True)) async def _(event): if event.fwd_from: return bro = random.randint(0, len(RUNSREACTS) - 1) input_str = event.pattern_match.group(1) reply_text = RUNSREACTS[bro] await event.edit(reply_text) @borg.on(phantom_cmd(pattern="metoo ?(.*)")) @borg.on(sudo_cmd(pattern="metoo ?(.*)", allow_sudo=True)) async def _(event): if event.fwd_from: return
"""CoinFlip for @UniBorg Syntax: .coinflip [optional_choice]""" from telethon import events import random, re from userbot.utils import phantom_cmd, sudo_cmd @borg.on(phantom_cmd(pattern="coin ?(.*)")) @borg.on(sudo_cmd(pattern="coin ?(.*)", allow_sudo=True)) async def _(event): if event.fwd_from: return r = random.randint(1, 100) input_str = event.pattern_match.group(1) if input_str: input_str = input_str.lower() if r % 2 == 1: if input_str == "heads": await event.edit( "The coin landed on: **Heads**. \n You were correct.") elif input_str == "tails": await event.edit( "The coin landed on: **Heads**. \n You weren't correct, try again ..." ) else: await event.edit("The coin landed on: **Heads**.") elif r % 2 == 0: if input_str == "tails": await event.edit( "The coin landed on: **Tails**. \n You were correct.") elif input_str == "heads":
# Mixed Animation plugin # some credit :- @pureindialover from telethon import events import asyncio import sys from userbot.utils import phantom_cmd @borg.on(phantom_cmd(pattern=r"lmoon")) async def test(event): if event.fwd_from: return await event.edit("🌕🌕🌕🌕🌕🌕🌕🌕\n🌕🌕🌖🌔🌖🌔🌕🌕\n🌕🌕🌗🌔🌖🌓🌕🌕\n🌕🌕🌗🌔🌖🌓🌕🌕\n🌕🌕🌖🌓🌗🌔🌕🌕\n🌕🌕🌗🌑🌑🌓🌕🌕\n🌕🌕🌗👀🌑🌓🌕🌕\n🌕🌕🌘👄🌑🌓🌕🌕\n🌕🌕🌗🌑🌑🌒🌕🌕\n🌕🌖🌑🌑🌑🌑🌔🌕\n🌕🌘🌑🌑🌑🌑🌒🌕\n🌖🌑🌑🌑🌑🌑🌑🌔\n🌕🤜🏻🌑🌑🌑🌑🤛🏻🌕\n🌕🌖🌑🌑🌑🌑🌔🌕\n🌘🌑🌑🌑🌑🌑🌑🌒\n🌕🌕🌕🌕🌕🌕🌕🌕") @borg.on(phantom_cmd(pattern=r"city")) async def test(event): if event.fwd_from: return await event.edit("""☁☁🌞 ☁ ☁ ☁ ✈ ☁ 🚁 ☁ ☁ ☁ ☁ ☁ ☁ 🏬🏨🏫🏢🏤🏥🏦🏪🏫 🌲/ l🚍\🌳👭 🌳/ 🚘 l 🏃 \🌴 👬 👬 🌴/ l 🚔 \🌲 🌲/ 🚖 l \ 🌳/🚶 | 🚍 \ 🌴🚴🚴 🌴/ | \🌲""")
+++++++++++++++++++++++++++++++++++++++++++ Say something interesting... Syntax: .belo by @Deonnn Quotes credits: Being logical Channel """ from telethon import events import asyncio import os import sys import random from userbot.utils import phantom_cmd @borg.on(phantom_cmd(pattern="bbl", outgoing=True)) async def _(event): if event.fwd_from: return await event.edit("Wait a MINUTE !...") await asyncio.sleep(2) x = (random.randrange(1, 101)) if x == 1: await event.edit( "`\"Underwater bubbles and raindrops are total opposites of each other.\"`" ) if x == 2: await event.edit( "`\"If you buy an eraser you are literally paying for your mistakes.\"`" ) if x == 3:
from telethon import events import asyncio from userbot.utils import phantom_cmd, sudo_cmd from userbot.utils import edit_or_reply as eor @borg.on(phantom_cmd(pattern="repo")) @borg.on(phantom_cmd(pattern="repo", allow_sudo=True)) async def source(e): if not e.text[0].isalpha() and e.text[0] not in ("/", "#", "@", "!"): await e.edit( "**Here is the repo of **[PHANTOM USERBOT ](https://github.com/prothinkergang/phantomuserbot)" )
import asyncio from datetime import datetime from .. import ALIVE_NAME, CMD_HELP from userbot.utils import phantom_cmd, edit_or_reply, sudo_cmd DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "Unknown" @borg.on(phantom_cmd(pattern="ping$")) @borg.on(sudo_cmd(pattern="ping$", allow_sudo=True)) async def _(event): if event.fwd_from: return start = datetime.now() event = await edit_or_reply(event, "__**(★ Pong!__**") end = datetime.now() ms = (end - start).microseconds / 1000 await event.edit( f"__**✦҈͜͡➳ Pong!__**\n★ {ms}\n★ __**My**__ __**Master**__ [{DEFAULTUSER}]" ) #Change The View its look CMD_HELP.update({"ping": "Show Ping Speed of Server"})
from telethon.tl.types import InputMediaDice from userbot.utils import phantom_cmd # EMOJI CONSTANTS DART_E_MOJI = "🎯" DICE_E_MOJI = "🎲" BALL_E_MOJI = "🏀" # EMOJI CONSTANTS @borg.on( phantom_cmd(pattern=f"({DART_E_MOJI}|{DICE_E_MOJI}|{BALL_E_MOJI}) ?(.*)")) async def _(event): if event.fwd_from: return reply_message = event if event.reply_to_msg_id: reply_message = await event.get_reply_message() emoticon = event.pattern_match.group(1) input_str = event.pattern_match.group(2) await event.delete() r = await reply_message.reply(file=InputMediaDice(emoticon=emoticon)) if input_str: try: required_number = int(input_str) while not r.media.value == required_number: await r.delete() r = await reply_message.reply(file=InputMediaDice( emoticon=emoticon)) except: pass
# afk_since = f"`{int(seconds)}s` **ago**" msg = None message_to_reply = ( f"__My Master Has Been In afk since__ `{total_afk_time}`\nWhere He Is: I don't know buddy..he is a busy person " + f"\n\n__I can't guarantee you that when he will come..__\n**REASON**: {reason}" if reason else f"**Heyy!**\n__I am currently unavailable. Since when, you ask? For {total_afk_time} I guess.__\n\nWhen will I be back? Soon __Whenever I feel like coming back__**(o(^▽^)o)** " ) msg = await event.reply(message_to_reply) await asyncio.sleep(5) if event.chat_id in last_afk_message: # pylint:disable=E0602 await last_afk_message[event.chat_id].delete() # pylint:disable=E0602 last_afk_message[event.chat_id] = msg # pylint:disable=E0602 @borg.on(phantom_cmd(pattern=r"afk ?(.*)", outgoing=True)) # pylint:disable=E0602 async def _(event): if event.fwd_from: return global USER_AFK # pylint:disable=E0602 global afk_time # pylint:disable=E0602 global last_afk_message # pylint:disable=E0602 global afk_start global afk_end global reason USER_AFK = {} afk_time = None last_afk_message = {} afk_end = {} start_1 = datetime.now() afk_start = start_1.replace(microsecond=0)
# Made by @helloji123bot. Keep credits cause it hurts... # Noice plugin.. Modified by @hellboi_atul for DARK COBRA..but the main credit goes to the owner who made it.. # Random Chat Number Added by @Anonymous_machinee import random, re from userbot.utils import phantom_cmd import asyncio from telethon import events @borg.on(phantom_cmd(pattern="fgben")) async def _(event): if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@", "!"): await event.edit("Preparing to gban this nub nibba....") await asyncio.sleep(2) await event.edit("Gbanning user.....") await asyncio.sleep(2) await event.edit("Gbanning user... \n 1 chats") await asyncio.sleep(2) a = random.randrange(2, 5) await event.edit(f"Gbanning user... \n {a} chats") await asyncio.sleep(2) b = random.randrange(6, 10) await event.edit(f"Gbanning user... \n {b} chats") await asyncio.sleep(2) c = random.randrange(11, 15) await event.edit(f"Gbanning user... \n {c} chats") await asyncio.sleep(2) d = random.randrange(16, 20) await event.edit(f"Gbanning user... \n {d} chats")
""".admin Plugin for @UniBorg""" import asyncio from telethon import events from telethon.tl.types import ChannelParticipantsAdmins from userbot.utils import phantom_cmd @borg.on(phantom_cmd(pattern="warn1")) async def _(event): if event.fwd_from: return mentions = ( "`You Have 1/3 warnings...\nWatch out!....\nReason for warn: Not given`" ) chat = await event.get_input_chat() async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins): mentions += f"" reply_message = None if event.reply_to_msg_id: reply_message = await event.get_reply_message() await reply_message.reply(mentions) else: await event.reply(mentions) await event.delete() @borg.on(phantom_cmd(pattern="warn2")) async def _(event):
"alien-desktop-wallpaper", "alien-planet-wallpaper", "alien-movie-wallpaper", "alien-spaceship-wallpaper" ] async def animepp(): os.system("rm -rf donot.jpg") rnd = random.randint(0, len(COLLECTION_STRING) - 1) pack = COLLECTION_STRING[rnd] pc = requests.get("http://getwallpapers.com/collection/" + pack).text f = re.compile('/\w+/full.+.jpg') f = f.findall(pc) fy = "http://getwallpapers.com"+random.choice(f) print(fy) if not os.path.exists("f.ttf"): urllib.request.urlretrieve("https://github.com/rebel6969/mym/raw/master/Rebel-robot-Regular.ttf","f.ttf") urllib.request.urlretrieve(fy,"donottouch.jpg") @borg.on(phantom_cmd(pattern="graphicsdp ?(.*)")) async def main(event): await event.edit("**Starting Your Profile Pic...\n\nCheck Your DP\n@Phantomot **") while True: await animepp() file = await event.client.upload_file("donottouch.jpg") await event.client(functions.photos.UploadProfilePhotoRequest( file)) os.system("rm -rf donottouch.jpg") await asyncio.sleep(1200) #Edit this to your required needs
"""Fetch App Details from Playstore. .app <app_name> to fetch app details. .appr <app_name> to fetch app details with Xpl0iter request link.""" import re import bs4 import requests from telethon import * from userbot import CMD_HELP from userbot.events import register from userbot.utils import phantom_cmd from userbot.utils import sudo_cmd @borg.on(phantom_cmd(pattern="app (.*)")) async def apk(e): try: app_name = e.pattern_match.group(1) final_name = app_name.replace(" ", "+") page = requests.get("https://play.google.com/store/search?q=" + final_name + "&c=apps") lnk = str(page.status_code) soup = bs4.BeautifulSoup(page.content, "lxml", from_encoding="utf-8") results = soup.findAll("div", "ZmHEEd") app_name = (results[0].findNext("div", "Vpfmgd").findNext( "div", "WsMG1c nnK0zc").text) app_dev = results[0].findNext("div", "Vpfmgd").findNext("div", "KoLSrc").text app_dev_link = ("https://play.google.com" + results[0].findNext( "div", "Vpfmgd").findNext("a", "mnKHRc")["href"])
# Else gay.. from telethon import events import subprocess from telethon.errors import MessageEmptyError, MessageTooLongError, MessageNotModifiedError import io import asyncio import time from userbot.utils import admin_cmd, phantom_cmd import glob import os import spotdl import subprocess @borg.on(phantom_cmd(pattern="getsong ?(.*)")) async def _(event): if event.fwd_from: return await event.edit( "**Getting Your Music it may take a few seconds to fetch the song from you tube and download it..**" ) DELAY_BETWEEN_EDITS = 0.1 PROCESS_RUN_TIME = 100 cmd = event.pattern_match.group(1) cmnd = f"{cmd}" reply_to_id = event.message.id if event.reply_to_msg_id: reply_to_id = event.reply_to_msg_id subprocess.run(["spotdl", "-s", cmnd, "-q", "best"]) subprocess.run(
# This is a troll indeed ffs *facepalm* import asyncio from telethon import events from telethon.tl.functions.users import GetFullUserRequest from telethon.tl.types import ChannelParticipantsAdmins from userbot.utils import admin_cmd, phantom_cmd from userbot import ALIVE_NAME @borg.on(phantom_cmd(pattern="gbun")) async def gbun(event): if event.fwd_from: return gbunVar = event.text gbunVar = gbunVar[6:] mentions = "`Warning!! User 𝙂𝘽𝘼𝙉𝙉𝙀𝘿 By Admin...\n`" no_reason = "__Reason: Potential spammer. __" await event.edit("**Summoning out le Gungnir ❗️⚜️☠️**") await asyncio.sleep(3.5) chat = await event.get_input_chat() async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins): mentions += f"" reply_message = None if event.reply_to_msg_id: reply_message = await event.get_reply_message() replied_user = await event.client(GetFullUserRequest(reply_message.sender_id)) firstname = replied_user.user.first_name usname = replied_user.user.username idd = reply_message.sender_id # make meself invulnerable cuz why not xD if idd == 1118936839:
import datetime from telethon import events from telethon.errors.rpcerrorlist import YouBlockedUserError from telethon.tl.functions.account import UpdateNotifySettingsRequest from userbot.utils import phantom_cmd @borg.on(phantom_cmd(pattern="ctg ?(.*)")) async def _(event): if event.fwd_from: return if not event.reply_to_msg_id: await event.edit("```Reply to a Link.```") return reply_message = await event.get_reply_message() if not reply_message.text: await event.edit("```Reply to a Link```") return chat = "@chotamreaderbot" sender = reply_message.sender await event.edit("```Processing```") async with event.client.conversation(chat) as conv: try: response = conv.wait_event( events.NewMessage(incoming=True, from_users=272572121)) await event.client.forward_messages(chat, reply_message) response = await response except YouBlockedUserError: await event.reply("`RIP Check Your Blacklist Boss`")
"""Quickly make a decision Syntax: .decide""" from telethon import events import requests from userbot.utils import phantom_cmd @borg.on(phantom_cmd("decide")) async def _(event): if event.fwd_from: return message_id = event.message.id if event.reply_to_msg_id: message_id = event.reply_to_msg_id r = requests.get("https://yesno.wtf/api").json() await borg.send_message(event.chat_id, r["answer"], reply_to=message_id, file=r["image"]) await event.delete()
PM_ON_OFF = Config.PM_DATA DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "Phantom User" CUSTOM_MIDDLE_PMP = (str(CUSTOM_PMPERMIT) if CUSTOM_PMPERMIT else f"Remember, SPAM can lead to Ban") USER_BOT_WARN_ZERO = "`You were spamming my sweet master's inbox, henceforth You have been blocked by my master's userbot⭕️.`\n**My Master Will Unblock You according to his wish\nGood Bye !!" USER_BOT_NO_WARN = ( "**Hello, This is Phantom Protection ⚠️**\n\n" f"`My Master {DEFAULTUSER} is Busy Right Now !` \n" "**I Request You To send `/start` to start a Valid Conversation** \n\n" f"**{CUSTOM_MIDDLE_PMP}**") if Var.PRIVATE_GROUP_ID is not None: @borg.on(phantom_cmd(pattern="allow ?(.*)")) async def approve_p_m(event): if event.fwd_from: return replied_user = await event.client(GetFullUserRequest(event.chat_id)) firstname = replied_user.user.first_name reason = event.pattern_match.group(1) chat = await event.get_chat() if event.is_private: if not pmpermit_sql.is_approved(chat.id): if chat.id in PM_WARNS: del PM_WARNS[chat.id] if chat.id in PREV_REPLY_MESSAGE: await PREV_REPLY_MESSAGE[chat.id].delete() del PREV_REPLY_MESSAGE[chat.id] pmpermit_sql.approve(chat.id, reason)
except Exception as err: return await event.edit("Something Went Wrong", str(err)) return user_obj, extra async def get_user_sender_id(user, event): if isinstance(user, str): user = int(user) try: user_obj = await event.client.get_entity(user) except (TypeError, ValueError) as err: await event.edit(str(err)) return None return user_obj @borg.on(phantom_cmd(pattern="gban ?(.*)")) async def gspider(userbot): lol = userbot sender = await lol.get_sender() me = await lol.client.get_me() if not sender.id == me.id: friday = await lol.reply("Gbanning This User !") else: friday = await lol.edit("Wait Processing.....") me = await userbot.client.get_me() await friday.edit(f"You Have Interfered In My Master's Life and Know Your End IS Near !! /n Good Bye ") my_mention = "[{}](tg://user?id={})".format(me.first_name, me.id) f"@{me.username}" if me.username else my_mention await userbot.get_chat() a = b = 0 if userbot.is_private:
#Added by @Sur_vivor import asyncio import random import re import time from random import choice, randint from collections import deque from telethon import events import requests from telethon.tl.functions.users import GetFullUserRequest from telethon.tl.types import MessageEntityMentionName from userbot.utils import admin_cmd, phantom_cmd @borg.on(phantom_cmd(pattern=r"fp$")) async def facepalm(e): """ Facepalm 🤦♂ """ await e.edit("🤦♂") @borg.on(phantom_cmd(pattern=r"ggl (.*)")) async def let_me_google_that_for_you(lmgtfy_q): textx = await lmgtfy_q.get_reply_message() qry = lmgtfy_q.pattern_match.group(1) if qry: query = str(qry) elif textx: query = textx query = query.message query_encoded = query.replace(" ", "+") lfy_url = f"http://lmgtfy.com/?s=g&iie=1&q={query_encoded}"
send_media=None, send_stickers=None, send_gifs=None, send_games=None, send_inline=None, embed_links=None, ) MUTE_RIGHTS = ChatBannedRights(until_date=None, send_messages=True) UNMUTE_RIGHTS = ChatBannedRights(until_date=None, send_messages=False) # ================================================ #@register(outgoing=True, pattern="^.setgpic$") @borg.on(phantom_cmd(pattern=r"setgpic")) @errors_handler async def set_group_photo(gpic): """ For .setgpic command, changes the picture of a group """ if not gpic.is_group: await gpic.edit("`I don't think this is a group.`") return replymsg = await gpic.get_reply_message() chat = await gpic.get_chat() admin = chat.admin_rights creator = chat.creator photo = None if not admin and not creator: await gpic.edit(NO_ADMIN) return
# plugin made by @hellboi_atul bug fixes by @Mrconfused # Copyright (C) DARK COBRA 2020. # if you change these lines you are gay...bc f**k off! # leechers stay away😑...if you use this code without credit...u gay bitch f**k off...! from telethon.errors.rpcerrorlist import YouBlockedUserError from userbot.utils import phantom_cmd, edit_or_reply, sudo_cmd import asyncio @borg.on(phantom_cmd(pattern="gaana ?(.*)")) async def FindMusicPleaseBot(gaana): song = gaana.pattern_match.group(1) chat = "@FindMusicPleaseBot" if not song: return await gaana.edit("```what should i search```") await gaana.edit("```Getting Your Music```") await asyncio.sleep(2) async with bot.conversation(chat) as conv: await gaana.edit("`Downloading...Please wait`") try: msg = await conv.send_message(song) response = await conv.get_response() if response.text.startswith("Sorry"): await bot.send_read_acknowledge(conv.chat_id) return await gaana.edit(f"Sorry, can't find {song}") respond = await conv.get_response() cobra = await conv.get_response() except YouBlockedUserError: await gaana.edit("```Please unblock``` @FindmusicpleaseBot``` and try again```") return await gaana.edit("`Sending Your Music...weit!😎`")
from telethon import events from userbot.utils import phantom_cmd from userbot import ALIVE_NAME, ALIVE_PIC from telethon.tl.types import ChannelParticipantsAdmins DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "PHANTOM USER" PHANTOM_VID="https://telegra.ph/file/4ca67e171821b46f5a4da.jpg" if ALIVE_PIC is None: ALIVE_PIC=PHANTOM_VID else: ALIVE_PIC=ALIVE_PIC pm_caption = "**PHANTOM USERBOT IS ONLINE**\n" pm_caption += f"**My Master** => **{DEFAULTUSER}**\n\n" pm_caption += "🤖 **SYSTEM INFO** 🤖\n" pm_caption += "**ᴜsᴇʀʙᴏᴛ - ᴠᴇʀsɪᴏɴ------>> 0.1**\n" pm_caption += "**ᴛᴇʟᴇᴛʜᴏɴ - ᴠᴇʀsɪᴏɴ ----> 1.15.0**\n" pm_caption += "**ᴘʏᴛʜᴏɴ - ᴠᴇʀsɪᴏɴ ------> 3.8.5**\n\n" pm_caption += "**🌀 SUPPORT INFO 🌀**\n" pm_caption += "**sᴜᴘᴘᴏʀᴛ - ᴄʜᴀɴɴᴇʟ ---->** [PhantomOt](https://t.me/PhantomOt)\n" pm_caption += "**sᴜᴘᴘᴏʀᴛ - ɢʀᴏᴜᴘ =** [PhantomSupport](https://t.me/PhantomSupport)\n\n" pm_caption += f"**[❤️ Create your own PHANTOM USERBOT ❤️](https://dashboard.heroku.com/new?template=https://github.com/prothinkergang/Phantomuserbot)**" @borg.on(phantom_cmd(pattern=r"alive")) async def amireallyalive(alive): chat = await alive.get_chat() """ For .alive command, check if the bot is running. """ await borg.send_file(alive.chat_id,file=ALIVE_PIC,caption=pm_caption) await alive.delete()
""" Life Pro Tips Syntax: .tip by @Deonnn """ from telethon import events import asyncio import os import sys import random from userbot.utils import phantom_cmd @borg.on(phantom_cmd(pattern=r"protip", outgoing=True)) async def _(event): if event.fwd_from: return await event.edit("Well, let me give you a life-pro tip... 😉") await asyncio.sleep(2) x = (random.randrange(1, 87)) if x == 1: await event.edit( "`\"Before telling your landlord you're moving, ask them to fix anything broken that you're worried you might get charged for. They often will, and then when you move out they won't be able to take it out of your security deposit.\"`" ) if x == 2: await event.edit( "`\"Walking before solving a problem improves your creativity by an average of 60%.\"`" ) if x == 3: await event.edit(
from userbot import CMD_LIST, SUDO_LIST from userbot import ALIVE_NAME from userbot.utils import ( phantom_cmd, sudo_cmd ) from platform import uname import sys from telethon import events, functions, __version__ DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "Unknown" #@command(pattern="^.help ?(.*)") @borg.on(phantom_cmd(pattern="help ?(.*)")) async def cmd_list(event): if not event.text[0].isalpha() and event.text[0] not in ("/", "#", "@", "!", "-", "_"): tgbotusername = Var.TG_BOT_USER_NAME_BF_HER input_str = event.pattern_match.group(1) if tgbotusername is None or input_str == "text": string = "" for i in CMD_LIST: string += "⚡️" + i + "\n" for iter_list in CMD_LIST[i]: string += " `" + str(iter_list) + "`" string += "\n" string += "\n" if len(string) > 4095: with io.BytesIO(str.encode(string)) as out_file: out_file.name = "cmd.txt"
"""COMMAND : .join , .pay , .work , .push , .aag , .climb""" import asyncio from telethon import events from telethon.tl.types import ChannelParticipantsAdmins from userbot.utils import phantom_cmd @borg.on(phantom_cmd(pattern="join")) async def _(event): if event.fwd_from: return mentions = "`━━━━━┓ \n┓┓┓┓┓┃\n┓┓┓┓┓┃ ヽ○ノ ⇦ Me When You Joined \n┓┓┓┓┓┃. / \n┓┓┓┓┓┃ ノ) \n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃\n┓┓┓┓┓┃`" chat = await event.get_input_chat() async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins): mentions += f"" reply_message = None if event.reply_to_msg_id: reply_message = await event.get_reply_message() await reply_message.reply(mentions) else: await event.reply(mentions) await event.delete() @borg.on(phantom_cmd(pattern="pay")) async def _(event): if event.fwd_from: return mentions = "`█▀▀▀▀▀█░▀▀░░░█░░░░█▀▀▀▀▀█\n█░███░█░█▄░█▀▀░▄▄░█░███░█\n█░▀▀▀░█░▀█▀▀▄▀█▀▀░█░▀▀▀░█\n▀▀▀▀▀▀▀░▀▄▀▄▀▄█▄▀░▀▀▀▀▀▀▀\n█▀█▀▄▄▀░█▄░░░▀▀░▄█░▄▀█▀░▀\n░█▄▀░▄▀▀░░░▄▄▄█░▀▄▄▄▀▄▄▀▄\n░░▀█░▀▀▀▀▀▄█░▄░████ ██▀█▄\n▄▀█░░▄▀█▀█▀░█▄▀░▀█▄██▀░█▄\n░░▀▀▀░▀░█▄▀▀▄▄░▄█▀▀▀█░█▀▀\n█▀▀▀▀▀█░░██▀█░░▄█░▀░█▄░██\n█░███░█░▄▀█▀██▄▄▀▀█▀█▄░▄▄\n█░▀▀▀░█░█░░▀▀▀░█░▀▀▀▀▄█▀░\n▀▀▀▀▀▀▀░▀▀░░▀░▀░░░▀▀░▀▀▀▀`" chat = await event.get_input_chat() async for x in borg.iter_participants(chat, filter=ChannelParticipantsAdmins): mentions += f"" reply_message = None
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # (c) Shrimadhav U K import asyncio from userbot.utils import phantom_cmd PHANTOM_SYM = ("|", "▒", "║", "》", "⫸", "➤", "➺") @borg.on(phantom_cmd(pattern="type (.*)")) async def _(event): if event.fwd_from: return # https://t.me/AnotherGroup/176551 MACHINEE = random.randrange(0, len(PHANTOM_SYM) - 1) TYPO_GRAM = PHANTOM_SYM[MACHINEE] input_str = event.pattern_match.group(1) shiiinabot = "\u2060" for i in range(601): shiiinabot += "\u2060" try: await event.edit(shiiinabot) except Exception as e: logger.warn(str(e)) typing_symbol = TYPO_GRAM DELAY_BETWEEN_EDITS = 0.3 previous_text = "" await event.edit(typing_symbol) await asyncio.sleep(DELAY_BETWEEN_EDITS) for character in input_str:
from userbot.utils import phantom_cmd from userbot import ALIVE_NAME, ALIVE_PIC from telethon.tl.types import ChannelParticipantsAdmins DEFAULTUSER = str(ALIVE_NAME) if ALIVE_NAME else "PHANTOM USER" PHANTOM_VID = "https://telegra.ph/file/f6fb42cb5880b47499364.mp4" if ALIVE_PIC is None: ALIVE_PIC = PHANTOM_VID else: ALIVE_PIC = ALIVE_PIC pm_caption = "**PHANTOM USERBOT IS ONLINE**\n" pm_caption += f"**My Master** => **{DEFAULTUSER}**\n\n" pm_caption += "🤖 **SYSTEM INFO** 🤖\n" pm_caption += "**ᴜsᴇʀʙᴏᴛ - ᴠᴇʀsɪᴏɴ------>> 0.1**\n" pm_caption += "**ᴛᴇʟᴇᴛʜᴏɴ - ᴠᴇʀsɪᴏɴ ----> 1.15.0**\n" pm_caption += "**ᴘʏᴛʜᴏɴ - ᴠᴇʀsɪᴏɴ ------> 3.8.5**\n\n" pm_caption += "**🌀 SUPPORT INFO 🌀**\n" pm_caption += "**sᴜᴘᴘᴏʀᴛ - ᴄʜᴀɴɴᴇʟ ---->** [PhantomOt](https://t.me/PhantomOt)\n" pm_caption += "**sᴜᴘᴘᴏʀᴛ - ɢʀᴏᴜᴘ =** [PhantomSupport](https://t.me/PhantomSupport)\n\n" pm_caption += f"**[❤️ Create your own PHANTOM USERBOT ❤️](https://dashboard.heroku.com/new?template=https://github.com/prothinkergang/Phantomuserbot)**" @borg.on(phantom_cmd(pattern=r"me")) async def amireallyalive(alive): chat = await alive.get_chat() """ For .alive command, check if the bot is running. """ await borg.send_file(alive.chat_id, file=ALIVE_PIC, caption=pm_caption) await alive.delete()
ch_log += f'•[{c.committed_datetime.strftime(d_form)}]: {c.summary} by <{c.author}>\n' return ch_log async def update_requirements(): reqs = str(requirements_path) try: process = await asyncio.create_subprocess_shell( ' '.join([sys.executable, "-m", "pip", "install", "-r", reqs]), stdout=asyncio.subprocess.PIPE, stderr=asyncio.subprocess.PIPE) await process.communicate() return process.returncode except Exception as e: return repr(e) @borg.on(phantom_cmd(pattern="update ?(.*)", outgoing=True)) async def upstream(ups): "For .update command, check if the bot is up to date, update if specified" conf = ups.pattern_match.group(1) await ups.edit("Checking for updates, please wait....") off_repo = UPSTREAM_REPO_URL force_update = False try: txt = "Oops.. Updater cannot continue due to " txt += "some problems occured`\n\n**LOGTRACE:**\n" repo = Repo() except NoSuchPathError as error: await ups.edit(f'{txt}\ndirectory {error} is not found') repo.__del__() return except GitCommandError as error:
"One day, I’m gonna make the onions cry" "Trying My Best !!", "Happy In Myself", "I AM UNIQUE", ) PLANE = random.choice(RANDOM_BIO) BIO_MSG = Config.BIO_MSG if BIO_MSG is None: BIO_MSG = PLANE DEL_TIME_OUT = 60 @borg.on(phantom_cmd(pattern="autobio")) # pylint:disable=E0602 async def _(event): if event.fwd_from: return while True: DMY = time.strftime("%d.%m.%Y") HM = time.strftime("%H:%M:%S") bio = f"📅{DMY} 🔥{BIO_MSG}🔥 ⌚️{HM}" logger.info(bio) try: await event.edit("**Autobio Enabled**") await asyncio.sleep(8) await event.delete() await borg( functions.account.UpdateProfileRequest( # pylint:disable=E0602 about=bio))
#port to DARK COBRA by @hellboi-atul import datetime from telethon import events from telethon.errors.rpcerrorlist import YouBlockedUserError from telethon.tl.functions.account import UpdateNotifySettingsRequest from userbot import bot, CMD_HELP from userbot.utils import phantom_cmd, sudo_cmd, edit_or_reply #@register(outgoing=True, pattern="^.q(?: |$)(.*)") @borg.on(phantom_cmd(pattern=r"qbot(?: |$)(.*)")) @borg.on(sudo_cmd(pattern=r"qbot(?: |$)(.*)", allow_sudo=True)) async def _(event): if event.fwd_from: return if not event.reply_to_msg_id: await edit_or_reply(event,"```Reply to any user message.```") return reply_message = await event.get_reply_message() if not reply_message.text: await edit_or_reply(event,"```Reply to text message```") return chat = "@QuotLyBot" sender = reply_message.sender hitler = await edit_or_reply(event,"```Making a Quote```") async with bot.conversation(chat) as conv: try: response = conv.wait_event(events.NewMessage(incoming=True,from_users=1031952739)) await bot.forward_messages(chat, reply_message) response = await response except YouBlockedUserError: