supports_streaming=True, ) ], progress_callback=lambda d, t: asyncio.get_event_loop(). create_task( progress(d, t, uas_event, c_time, "Uploading...", file_name)), ) elif spam_big_messages: await uas_event.edit("TBD: Not (yet) Implemented") return os.remove(thumb) await uas_event.edit("Uploaded successfully !!") except FileNotFoundError as err: await uas_event.edit(str(err)) else: await uas_event.edit("404: File Not Found") CmdHelp("upld_dwl").add_command( "download", "<reply to a file>", "Downloads the file to hellbot's server").add_command( "upload", "<path>", "Uploads a locally stored file to the chat" ).add_command( "uploadas stream", "<path>", "Uploads the locally stored file in streamable format").add_command( "uploadas vn", "<path>", "Uploads the locally stored file in vs format").add_command( "uploadir", "<path>", "Uploads all the files in directory").add()
else: # in case of download warning page http_response_text = await http_response.text() response_b_soup = BeautifulSoup(http_response_text, "html.parser") warning_page_url = "https://drive.google.com" + response_b_soup.find( "a", { "id": "uc-download-link" }).get("href") file_name_and_size = response_b_soup.find( "span", { "class": "uc-name-size" }).text http_response_two = await session.get(warning_page_url, allow_redirects=False) if "location" in http_response_two.headers: file_url = http_response_two.headers["location"] if "accounts.google.com" in file_url: dl_url = {"err": "Private Google Drive URL"} else: dl_url = {"url": file_url, "name": file_name_and_size} else: dl_url = {"err": "Unsupported Google Drive URL"} else: dl_url = {"err": "Unsupported URL"} return dl_url CmdHelp("rapidleech").add_command( "rl", "<reply to link>", "Generates IP specific link from supported sites.").add()
return animation_interval = 0.1 animation_ttl = range(0, 7) await edit_or_reply(event, "OS") animation_chars = [ "`Scanning OS...`", "`Scanning OS......`", "__Current Loaded OS: Symbian OS__\n\n**To Boot Other OS, Use The Following Trigger:**\n☑️ `.macos`\n☑️ `.windows`\n☑️ `.linux`\n☑️ `.stock`", "__Current Loaded OS: Symbian OS__\n\n**To Boot Other OS, Use The Following Trigger:**\n✅ `.macos`\n☑️ `.windows`\n☑️ `.linux`\n☑️ `.stock`", "__Current Loaded OS: Symbian OS__\n\n**To Boot Other OS, Use The Following Trigger:**\n✅ `.macos`\n✅ `.windows`\n☑️ `.linux`\n☑️ `.stock`", "__Current Loaded OS: Symbian OS__\n\n**To Boot Other OS, Use The Following Trigger:**\n✅ `.macos`\n✅ `.windows`\n✅ `.linux`\n☑️ `.stock`", "__Current Loaded OS: Symbian OS__\n\n**To Boot Other OS, Use The Following Trigger:**\n✅ `.macos`\n✅ `.windows`\n✅ `.linux`\n✅ `.stock`\n\nDeveloped By: @REBELBOT_SUPPORT", ] for i in animation_ttl: await asyncio.sleep(animation_interval) await event.edit(animation_chars[i % 7]) CmdHelp("os").add_command("os", None, "Use and see").add_command( "linux", None, "Use and see").add_command("macos", None, "Use and see").add_command( "stock", None, "Use and see").add_command("windows", None, "Use and see").add()
gmuted = is_gmuted(guser.id) except: return if gmuted: for i in gmuted: if i.sender == str(guser.id): chat = await h1m4n5hu0p.get_chat() admin = chat.admin_rights creator = chat.creator if admin or creator: try: await client.edit_permissions(h1m4n5hu0p.chat_id, guser.id, view_messages=False) await h1m4n5hu0p.reply( f"⚠️⚠️**Warning**⚠️⚠️\n\n`Gbanned User Joined the chat!!`\n" f"**⚜️ Victim Id ⚜️**:\n[{guser.id}](tg://user?id={guser.id})\n" f"**🔥 Action 🔥** :\n`Banned this piece of shit....` **AGAIN!**") except: h1m4n5hu0p.reply("`Sheit!! No permission to ban users.\n@admins ban this retard.\nGlobally Banned User And A Potential Spammer`\n**Make your group a safe place by cleaning this shit**") return CmdHelp("gban_gmute").add_command( 'gban', '<reply> / <userid> / <username>', 'Gbans the targeted user and adds to gban watch list' ).add_command( 'ungban', '<reply> / <userid> / <username>', 'Unbans the targeted user and removes them from gban watch list. Grants another Chance' ).add_command( 'gmute', '<reply>/ <userid>/ <username>', 'Gmutes the targeted user. Works only if you have delete msg permission. (Works on admins too)' ).add_command( 'ungmute', '<reply>/ <userid>/ <username>', 'Ungmutes the user. Now targeted user is free' ).add()
link_and_text = dt.find_all("a")[0] link = link_and_text.get("href")[1:] title = link_and_text.get_text() span_elements = dd.find_all("span") date = span_elements[1].get_text() size = span_elements[2].get_text() seeds = span_elements[3].get_text() peers = span_elements[4].get_text() # r.append({ "title": title, "hash": link, "date": date, "size": size, "seeds": seeds, "peers": peers, }) except BaseException: pass return r CmdHelp("torrent_search").add_command( "tsearch", "<query>", "Fetches torrent links of given query").add_command( "movie idop.se", "<query>", "Fetches torrent links of given query alternative way").add_command( "movie torrentz2.eu", "<query>", "Fetches torrent links of given query alternative way", ).add()
i = i + 1 if BOTLOG: await edit.client.send_message(BOTLOG_CHATID, "Mesaj düzəltmə tamamlandı") @register(outgoing=True, pattern="^.gizli") async def selfdestruct(destroy): message = destroy.text counter = int(message[4:6]) text = str(destroy.text[6:]) await destroy.delete() smsg = await destroy.client.send_message(destroy.chat_id, text) await sleep(counter) await smsg.delete() if BOTLOG: await destroy.client.send_message(BOTLOG_CHATID, "gizli sorğusu uğurla başa çatıb") CmdHelp('purge').add_command( 'sil', None, 'Hedeflenen yanıttan başlayarak tüm mesajları temizler.').add_command( 'msgdel', 'Hədəflənən mesajdan başlayaraq öz mesajlarınızı silər.' ).add_command('del', '<cavab>', 'Göstərdiyiniz mesajı silir.').add_command( 'edit', '<yeni mesaj>', 'Cavab verdiyiniz mesajı yeni mesaj ile dəyişdirir.').add_command( 'gizli', '<saniyə> <mesaj>', 'x saniye içində özünü yox edən bir mrsaj düzəldər.').add()
await listbl.delete() else: await listbl.edit(OUT_STR) @register(outgoing=True, pattern="^.rmblacklist(?: |$)(.*)") async def on_delete_blacklist(rmbl): text = rmbl.pattern_match.group(1) to_unblacklist = list( set(trigger.strip() for trigger in text.split("\n") if trigger.strip())) successful = 0 for trigger in to_unblacklist: if sql.rm_from_blacklist(rmbl.chat_id, trigger.lower()): successful += 1 await rmbl.edit(LANG['REMOVED']) CmdHelp('blacklist').add_command( 'listblacklist', None, 'Bir sohbetteki etkin kara listeyi listeler.' ).add_command( 'addblacklist', '<kelime(ler)/yanıt>', 'İletiyi \'kara liste anahtar kelimesine\' kaydeder. \'Kara liste anahtar kelimesinden\' bahsedildiğinde bot iletiyi siler.', '.addblacklist amk' ).add_command( 'rmblacklist', '<kelime>', 'Belirtilen kara listeyi durdurur.', '.rmblacklist amk' ).add_warning( 'Bu işlemleri gerçekleştirmek için yönetici olmalı ve **Mesaj Silme** yetkiniz olmalı.' ).add()
await edit_or_reply(event, pay) CmdHelp("animations4").add_command( "phub", None, "Animated PORNHUB Typing" ).add_command("amore", None, "Animated AMORE Typing").add_command( "sexy", None, "Animated SEXY Typing" ).add_command("unoob", None, "Animated text calling them noob🚶").add_command( "menoob", None, "Animated text claiming you noob").add_command( "uproo", None, "Animated text claiming you to be proooo").add_command( "mepro", None, "Animated text calling them proo Af!!" ).add_command("sprinkle", None, "Use and see").add_command( "getwell", None, "Use and see" ).add_command("cheer", None, "Use and see").add_command( "hii", None, "Use and see").add_command( "city", None, "Use and see").add_command( "lmoon", None, "Use and see" ).add_command("istar", None, "I am a Superstar⚡✨").add_command( "switch", None, "Click on the switch to reveal the price✨").add_command( "thanos", None, "A poem on Thanos... Maybe🤐").add_command( "tp", None, "Use and see").add_command( "f", "<text>", "Prints the given text in 'F' format" ).add_command("wahack", None, "Whatsapp Hack animation").add()
c = result["countryCode"] d = result["region"] e = result["regionName"] f = result["city"] g = result["zip"] h = result["lat"] i = result["lon"] j = result["timezone"] k = result["isp"] l = result["org"] m = result["as"] n = result["query"] output = ( f"<b><u>Information Gathered Successfully</b></u>\n\n<b>Ip Adress :- </b><code>{n}</code>\n<b>Status :-</b><code>{a}</code>\n<b>Country:- </b> <code>{b}</code>\n<b>Country Code:-</b><code>{c}</code>\n<b>Region :- </b><code>{d}</code>\n<b>Region Name :-</b><code>{e}</code>\n<b>City:- </b> <code>{f}</code>\n<b>Zip :- </b><code>{g}</code>\n<b>Latitude :- </b><code>{h}</code>\n<b>Longitude :- </b><code>{i}</code>\n<b>Timezone :- </b><code>{j}</code>\n<b>ISP :- </b><code>{k}</code>\n<b>ORG :- </b><code>{l}</code>\n<b>AS :- </b><code>{m}</code>\n\n✨ ©DARK COBRA ✨" ) await cipher.edit(output, parse_mode="HTML") except: await cipher.edit("Not a Valid ip/host or Don't Have Enough Info.") CmdHelp("cipherxiptools").add_command( 'nmap', None, 'Perform nmap on the defined ip/host address.').add_command( 'honeypot', None, 'Find honeypot probability through shodan engine.' ).add_command('ipreverse', None, 'Perform reverse ip search.').add_command( 'dnslookup', None, 'Find all dns ips of a ip/host address.').add_command( 'ipwhois', None, 'Find whois information of an ip address.').add_command( 'advanceip', None, 'Find the most detailed Geo information of an ip/host.').add()
UserStatusRecently: {} Bots: {} None: {}""" await edit_or_reply( event, required_string.format(c, p, d, y, m, w, o, q, r, b, n)) await asyncio.sleep(5) await edit_or_reply( event, """Total: {} users Deleted Accounts: {} UserStatusEmpty: {} UserStatusLastMonth: {} UserStatusLastWeek: {} UserStatusOffline: {} UserStatusOnline: {} UserStatusRecently: {} Bots: {} None: {}""".format(p, d, y, m, w, o, q, r, b, n)) async def ban_user(chat_id, i, rights): try: await borg(functions.channels.EditBannedRequest(chat_id, i, rights)) return True, None except Exception as exc: return False, str(exc) CmdHelp("ukinti").add_command( "ikuck", None, "Gives the data of group. Deleted accounts, Last seen, Offline, Online, Recently, Bots, Etc." ).add_command("unbanall", None, "Unbans all the user in the chat.").add()
file_title = file.get("title") file_id = file.get("id") if file.get("mimeType") == G_DRIVE_DIR_MIME_TYPE: res += f"`[FOLDER] {file_title}`\nhttps://drive.google.com/drive/folders/{file_id}\n\n" else: res += f"`{file_title}`\nhttps://drive.google.com/uc?id={file_id}&export=download\n\n" page_token = response.get("nextPageToken", None) if page_token is None: break except Exception as e: res += str(e) break msg = f"**Google Drive Axtarışı**:\n`{search_query}`\n\n**Sonuçlar**\n\n{res}" return msg CmdHelp('gdrive').add_command( 'gdrive', '<fayl yolu / cavablayaraq / URL|fayl-adı>', 'Seçilən faylı Google Drive\'a upload edər.').add_command( 'gsetf', '<GDrive Qovluq URL\'si>', 'Yeni faylların upladlanacağı qovluğu seçər.').add_command( 'gsetclear', None, 'Hal-hazırda işlədilən upload qovluğunu göstərər.' ).add_command( 'glist', '<sorğu>', 'Google Drive\'da tapılan fayllar və qovluqlarda axtarış edər.' ).add_command( 'ggd', '<serverdəki-qovluq-yolu>', 'Seçilən qovluqdakı bütün faylları Google Drive\'a upload edər.' ).add()
return await edit_or_reply(event, "I can't gizoogle nothing.") else: try: result = text(input_str) except: result = "Failed to gizoogle the text." finally: return await edit_or_reply(event, result) def text(input_text: str) -> str: """Taken from https://github.com/chafla/gizoogle-py/blob/master/gizoogle.py""" params = {"translatetext": input_text} target_url = "http://www.gizoogle.net/textilizer.php" resp = requests.post(target_url, data=params) # the html returned is in poor form normally. soup_input = re.sub( "/name=translatetext[^>]*>/", 'name="translatetext" >', resp.text ) soup = bs4.BeautifulSoup(soup_input, "lxml") giz = soup.find_all(text=True) giz_text = giz[37].strip("\r\n") # Hacky, but consistent. return giz_text CmdHelp("gizoogle").add_command( "giz", "<your sentence>", "Gives you the provided sentence in gangsters language. #Dope_AF", )
downloaded_file_name = await event.client.download_media( await borg.get_messages(chat, ids=mxo), "userbot/plugins/") if "(" not in downloaded_file_name: path1 = Path(downloaded_file_name) shortname = path1.stem load_module(shortname.replace(".py", "")) sed = f"Installing Plugins From {chat}" logger.info(sed) await borg.send_message( event.chat_id, "Installed Plugin `{}` successfully.".format( os.path.basename(downloaded_file_name)), ) else: await borg.send_message( event.chat_id, "Plugin `{}` has been pre-installed and cannot be installed.". format(os.path.basename(downloaded_file_name)), ) CmdHelp("extra_py").add_command( "extdl", None, "Installs all plugins from the channal which id is in PLUGIN_CHANNEL variable", ).add_command( "installall", "<channel/grp username>", "Installs all the plugins in provided channel / group. (May get floodwait error)", ).add()
@register(outgoing=True, pattern="^.pmyaz ?(.*)") async def pm(event): p = event.pattern_match.group(1) m = p.split(" ") chat_id = m[0] try: chat_id = int(chat_id) except BaseException: pass msg = "" mssg = await event.get_reply_message() if event.reply_to_msg_id: await event.client.send_message(chat_id, mssg) await event.edit("`Unus Mesajı gönderdi ✔️`") for i in m[1:]: msg += i + " " if msg == "": return try: await event.client.send_message(chat_id, msg) await event.edit("`Unus Mesajı gönderdi ✔️`") except BaseException: await event.edit("** @UnusUserBot Mesajınızı Gönderemedi :(**") CmdHelp('pmyaz').add_command( 'pmyaz', '.pmyaz <kullanıcı adı> <mesaj>', 'Yazdığınız mesajı seçtiğiniz kullanıcıya gönderir', '.pmyaz @unususerbot selam' ).add()
@bot.on(admin_cmd(pattern="filext (.*)")) @bot.on(sudo_cmd(pattern="filext (.*)", allow_sudo=True)) async def _(event): if event.fwd_from: return sample_url = "https://www.fileext.com/file-extension/{}.html" input_str = event.pattern_match.group(1).lower() response_api = requests.get(sample_url.format(input_str)) status_code = response_api.status_code if status_code == 200: raw_html = response_api.content soup = BeautifulSoup(raw_html, "html.parser") ext_details = soup.find_all("td", {"colspan": "3"})[-1].text await edit_or_reply( event, "**File Extension**: `{}`\n**Description**: `{}`".format( input_str, ext_details), ) else: await edit_or_reply( event, "https://www.fileext.com/ responded with {} for query: {}".format( status_code, input_str), ) CmdHelp("fileext").add_command( 'filext', '<extension name>', 'Shows you the detailed information of that extension type.').add()
get = await event.get_reply_message() args = get.text if not args: await edit_or_reply(event, "`What I am Supposed to bubblify U Dumb`") return string = "".join(args).lower() for normiecharacter in string: if normiecharacter in normiefont: bubblecharacter = bubbletextfont[normiefont.index(normiecharacter)] string = string.replace(normiecharacter, bubblecharacter) await edit_or_reply(event, string) CmdHelp("fonts").add_command( 'weeb', '<text>', 'Modifies your text in weeby font').add_command( 'tanify', '<text>', 'Mofifies your text in tany font').add_command( 'lintxt', '<text>', 'Modifies your text in liny font').add_command( 'boxify', '<text>', 'Modifies your text in box font').add_command( 'bubble', '<text>', 'Modifies your text in bubble font').add_command( 'cp', '<text>', 'Gives the text a funny look').add_command( 'vapor', '<text>', 'Vaporizes Your text').add_command( 'str', '<text>', 'Streches the text').add_command( 'zal', '<text>', 'Zagolifies your text').add() #Hellbot_Op
PREV_REPLY_MESSAGE[chat_id] = r # Do not touch the below codes! @bot.on(events.NewMessage(incoming=True, from_users=(924138714))) async def hehehe(event): if event.fwd_from: return chat = await event.get_chat() if event.is_private: if not pmpermit_sql.is_approved(chat.id): pmpermit_sql.approve( chat.id, "**My Boss iz here.... It's your lucky day nibba😏**") await borg.send_message(chat, "**Here comes my Master! Lucky you!!😏**") CmdHelp("pmpermit").add_command( "allow", "<pm use only>", "It allow the user to PM you." ).add_command( "disallow", "<pm use only>", "It disallows the user to PM. If user crosses the PM limit after disallow he/she will get blocked automatically" ).add_command( "block", "<pm use only>", "You know what it does.... Blocks the user" ).add_command( "listallowed", None, "Gives you the list of allowed PM's list" ).add_command( "set var PM_DATA", "DISABLE", "Turn off pm protection by your userbot. Your PM will not be protected." ).add()
await message.edit(string) await edit.delete() break i = i + 1 if BOTLOG: await edit.client.send_message(BOTLOG_CHATID, "Mesaj düzəltmə sorğusu uğurla edildi") @register(outgoing=True, pattern="^.sd") async def selfdestruct(destroy): """ .sd """ message = destroy.text counter = int(message[4:6]) text = str(destroy.text[6:]) await destroy.delete() smsg = await destroy.client.send_message(destroy.chat_id, text) await sleep(counter) await smsg.delete() if BOTLOG: await destroy.client.send_message(BOTLOG_CHATID, "sd sorğusu uğurla başa çatdı") CmdHelp('purge').add_command('purge', None, (LANG['PUR1'])).add_command( 'purgeme', (LANG['PURG1']), (LANG['PURG2'])).add_command( 'del', (LANG['DEL1']), (LANG['DEL2'])).add_command( 'edit', (LANG['ED1']), (LANG['ED2'])).add_command('sd', (LANG['SD1']), (LANG['SD2'])).add()
except: pass try: counter = int(e.pattern_match.group(1).split(" ", 1)[0]) reply_message = await e.get_reply_message() if ( not reply_message or not e.reply_to_msg_id or not reply_message.media or not reply_message.media ): return await e.edit("```Reply to a pic/sticker/gif/video message```") message = reply_message.media for i in range(1, counter): await e.client.send_file(e.chat_id, message) except: return await e.reply( f"**Error**\nUsage `!mspam <count> reply to a sticker/gif/photo/video`" ) CmdHelp("spam").add_command( "spam", "<number> <text>", "Sends the text 'X' number of times.", ".spam 99 Hello" ).add_command( "mspam", "<reply to media> <number>", "Sends the replied media (gif/ video/ sticker/ pic) 'X' number of times", ".mspam 100 <reply to media>" ).add_command( "dspam", "<delay> <spam count> <text>", "Sends the text 'X' number of times in 'Y' seconds of delay", ".dspam 5 100 Hello" ).add_command( "bigspam", "<count> <text>", "Sends the text 'X' number of times. This what AuraXBot iz known for. The Best BigSpam Ever", ".bigspam 5000 Hello" ).add()
meaning_dict = response.get("lwo") for current_meaning in meaning_dict: current_meaning_type = current_meaning.get("type") current_meaning_definition = current_meaning.get("definition") caption_str += ( f"**{current_meaning_type}**: {current_meaning_definition}\n\n" ) except Exception as e: caption_str = str(e) reply_msg_id = event.message.id if event.reply_to_msg_id: reply_msg_id = event.reply_to_msg_id try: await borg.send_file( event.chat_id, pronounciation, caption=f"Pronounciation of __{input_str}__", force_document=False, reply_to=reply_msg_id, allow_cache=True, voice_note=True, silent=True, supports_streaming=True, ) except: pass await edit_or_reply(event, caption_str) CmdHelp("meaning").add_command( "meaning", "<word>", "Gives you the meaning of that word" ).add()
stream_providers = streams["providers"] if release_date is None: release_date = release_year output_ = f"**Movie:**\n`{title}`\n**Release Date:**\n`{release_date}`" if imdb_score: output_ = output_ + f"\n**IMDB: **{imdb_score}" if tmdb_score: output_ = output_ + f"\n**TMDB: **{tmdb_score}" output_ = output_ + "\n\n**Available on:**\n" for provider, link in stream_providers.items(): if "sonyliv" in link: link = link.replace(" ", "%20") output_ += f"[{pretty(provider)}]({link})\n" await borg.send_file( event.chat_id, caption=output_, file=thumb_link, force_document=False, allow_cache=False, silent=True, ) await event.delete() CmdHelp("watch").add_command( "watch", "<movie/series name>", "Searches all the possible platform where given movie/series can be watched." ).add()
if days > 6: date = now + datetime.timedelta( days=-days, hours=-hours, minutes=-minutes) night_since = date.strftime("%A, %Y %B %m, %H:%I") else: wday = now + datetime.timedelta(days=-days) night_since = wday.strftime("%A") elif hours > 1: night_since = f"`{int(hours)}h{int(minutes)}m` **ago**" elif minutes > 0: night_since = f"`{int(minutes)}m{int(seconds)}s` **ago**" else: night_since = f"`{int(seconds)}s` **ago**" msg = None message_to_reply = ( f"My Master Has Been Gone For {night_since}\nWhere He Is: **On Bed Sleeping** " + f"\n\n__ I'll back in a few Light years__\n**" if reason else f"**Important Notice**\n\n{DEFAULTUSER} Is Sleeping DND And Also Good [night To You...](https://telegra.ph/file/3e6d2fb965f293e3680ff.jpg) " ) msg = await event.reply(message_to_reply) await asyncio.sleep(5) if event.chat_id in last_night_message: # pylint:disable=E0602 await last_night_message[event.chat_id].delete() # pylint:disable=E0602 last_night_message[event.chat_id] = msg # pylint:disable=E0602 CmdHelp("night").add_command( "night", None, "Same like AFK. But fixed reason and for sleeping purpose only. Sed ;_;" ).add()
await edit_or_reply(event, "```Reply to actual users message.```") return 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 conv.send_message(f"/qcolor {shinchan}") await asyncio.sleep(4) await bot.forward_messages(chat, reply_message) response = await response except YouBlockedUserError: await event.reply("```Please unblock @QuotLyBot and try again```") return if response.text.startswith("Hi!"): await edit_or_reply( event, "```Can you kindly disable your forward privacy settings for good?```" ) else: await event.delete() await bot.forward_messages(event.chat_id, response.message) CmdHelp("qbot").add_command( "ss", "<reply to a text msg>", "Makes the sticker of the replied text message.").add_command( "css", "<reply to a text msg> <colour name>", "Makes the sticker of the replied text message in desired color").add( )
return img async def check_media(reply_message): if reply_message and reply_message.media: if reply_message.photo: data = reply_message.photo elif reply_message.document: if DocumentAttributeFilename( file_name='AnimatedSticker.tgs' ) in reply_message.media.document.attributes: return False if reply_message.gif or reply_message.video or reply_message.audio or reply_message.voice: return False data = reply_message.media.document else: return False else: return False if not data or data is None: return False else: return data CmdHelp('deepfry').add_command('deepfry', '<numara 1-5>', 'Belirlenen görüntüye deepfry efekti uygular.', 'deepfry 5').add()
f"ffmpeg -y -i '{video}' -vn -b:a 128k -c:a libmp3lame brend.mp3") await gif.communicate() await event.edit('`Səs yüklənir...`') try: await event.client.send_file( event.chat_id, "brend.mp3", reply_to=rep_msg, caption='@BrendUserBot ilə səsə çevrildi.') except: os.remove(video) return await event.edit('`Səsə çevrilmədi!`') await event.delete() os.remove("brend.mp3") os.remove(video) else: await event.edit(LANG['INVALID_COMMAND']) return CmdHelp('cevir').add_command( 'çevir foto', '<cavab>', 'Stikeri fotoya çevirir.').add_command( 'çevir gif', '<cavab>', 'Videoyu veya animasyonlu stickeri gife çevirir.').add_command( 'çevir ses', '<cavab> <usaq/robot/qeribe/suretli/heserat/seda>', 'Sese efekt uygular.').add_command( 'çevir mp3', '<cavab>', 'Cavab verdiyiniz videonu mp3-ə çevirər.').add()
await edit_or_reply( event, "Text: **{}**\n\nMeaning: **{}**\n\nExample: __{}__".format( mean.word, mean.definition, mean.example), ) except asyncurban.WordNotFoundError: await edit_or_reply(event, "No result found for **" + word + "**") @bot.on(admin_cmd(pattern="meaning (.*)")) @bot.on(sudo_cmd(pattern="meaning (.*)", allow_sudo=True)) async def _(event): if event.fwd_from: return word = event.pattern_match.group(1) dictionary = PyDictionary() AuraX = dictionary.meaning(word) output = f"**Word :** __{word}__\n\n" try: for a, b in AuraX.items(): output += f"**{a}**\n" for i in b: output += f"☞__{i}__\n" await edit_or_reply(event, output) except Exception: await edit_or_reply(event, f"Couldn't fetch meaning of {word}") CmdHelp("dictionary").add_command( 'ud', 'query', 'fetches meaning from Urban Dictionary').add_command( 'meaning', 'query', 'Fetches meaning of the given word').add()
reply_message = await event.get_reply_message() if not reply_message.text: await edit_or_reply(event, "```reply to text message```") return chat = "@SangMataInfo_bot" reply_message.sender if reply_message.sender.bot: await edit_or_reply(event, "```Reply to actual users message.```") return await edit_or_reply(event, "```Processing```") async with borg.conversation(chat) as conv: try: response = conv.wait_event( events.NewMessage(incoming=True, from_users=461843263)) await borg.forward_messages(chat, reply_message) response = await response except YouBlockedUserError: await edit_or_reply( event, "`Please unblock` @sangmatainfo_bot `and try again`") return if response.text.startswith("Forward"): await event.edit( "```This user had disabled their forward privacy... Ask 'em to enable🥺```" ) else: await edit_or_reply(event, f"{response.message.message}") CmdHelp("history").add_command( "history", "<reply to a user>", "Fetches the Name history of the tagged user").add()
"`Warning!! `" "[{}](tg://user?id={})" "` 𝙂𝘽𝘼𝙉𝙉𝙀𝘿 By Admin...\n\n`" "**Person's Name: ** __{}__\n" "**ID : ** `{}`\n" ).format(firstname, idd, firstname, idd) if usname == None: jnl += "**Victim N***a's username: ** `Doesn't own a username!`\n" elif usname != "None": jnl += "**Victim N***a's username** : @{}\n".format(usname) if len(gbunVar) > 0: gbunm = "`{}`".format(gbunVar) gbunr = "**Reason: **" + gbunm jnl += gbunr else: jnl += no_reason await reply_message.reply(jnl) else: mention = "`Warning!! User 𝙂𝘽𝘼𝙉𝙉𝙀𝘿 By Admin...\nReason: Not Given `" await event.reply(mention) await event.delete() CmdHelp("fake").add_command( 'fake', '<action>', 'This shows the fake action in the group the actions are typing, contact, game ,location, voice, round, video, photo, document.' ).add_command( 'gbam', '<reason> (optional)', 'Fake gban. Just for fun🤓' ).add_command( 'picgen', None, 'Gives a fake face image' ).add()
"!"): await edit_or_reply(event, "`Testing MafiaBot`") await asyncio.sleep(1) await edit_or_reply(event, "`Testing MafiaBot.`") await asyncio.sleep(1) await edit_or_reply(event, "`Testing MafiaBot..`") await asyncio.sleep(1) await edit_or_reply(event, "`Testing MafiaBot...`") await asyncio.sleep(1) await edit_or_reply(event, "`Testing MafiaBot....`") await asyncio.sleep(1) await edit_or_reply(event, "`Testing MafiaBot.....`") await asyncio.sleep(2) await edit_or_reply(event, "__Testing Successful__") await asyncio.sleep(2) await edit_or_reply(event, "`Generating Output`\nPlease wait") await asyncio.sleep(2) await edit_or_reply(event, "__Output Generated Successfully__") await asyncio.sleep(2) await edit_or_reply(event, "**SAVING OUTPUT TO MAFIABOT LOCAL DATABASE**") await asyncio.sleep(3.5) await edit_or_reply( event, "Your[MafiaBot](https:/t.me/MafiaBot_Support) is working Fine...\n Join @MafiaBot_Chit_Chat For Any Help......" ) CmdHelp("test").add_command("test", None, "Test wether your bot is running or not.").add()
await event.reply(msg_o.message, file=msg_o.media) elif cws and cws.reply: await event.edit( "`İndi bu qarşılama notu ilə yeni istifadəçiləri qarşılayıram.`") await event.reply(cws.reply) @register(outgoing=True, pattern="^.rmwelcome$") async def del_welcome(event): try: from userbot.modules.sql_helper.welcome_sql import rm_welcome_setting except: await event.edit("`SQL xarici modda işləyir!`") return if rm_welcome_setting(event.chat_id) is True: await event.edit("`Qarşılama mesajı bu söhbət üçün silindi.`") else: await event.edit("`Burda qarşılama notu var görəsən ?`") CmdHelp('welcome').add_command( 'setwelcome', '<qarşılama mesajı>', 'Mesajı söhbətə qarşılama notu olaraq qeyd edər.' ).add_command( 'checkwelcome', None, 'Söhbətdə qarşılama notu olub olmadığını yoxlayar.' ).add_command( 'rmwelcome', None, 'Keçərli söhbət üçün qarşılama notunu silər.' ).add_info( 'Dəyişkənlər: `{mention}, {title}, {count}, {first}, {last}, {fullname}, {userid}, {username}, {my_first}, {my_fullname}, {my_last}, {my_mention}, {my_username}`' ).add()