Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from pyrogram import Client, filters
- from pyrogram.errors import FloodWait
- from pyrogram.raw import functions
- from pyrogram.types import ChatPermissions
- import time, requests, json
- from time import sleep
- import random
- import re
- app = Client(session_name='first_test1')
- store = []
- REPLACEMENT_MAP = {"a": "ɐ","b": "q","c": "ɔ","d": "p","e": "ǝ","f": "ɟ","g": "ƃ","h": "ɥ","i": "ᴉ","j": "ɾ","k": "ʞ","l": "l","m": "ɯ","n": "u","o": "o","p": "d","q": "b","r": "ɹ","s": "s","t": "ʇ","u": "n","v": "ʌ","w": "ʍ","x": "x","y": "ʎ","z": "z","A": "∀","B": "B","C": "Ɔ","D": "D","E": "Ǝ","F": "Ⅎ","G": "פ","H": "H","I": "I","J": "ſ","K": "K","L": "˥","M": "W","N": "N","O": "O","P": "Ԁ","Q": "Q","R": "R","S": "S","T": "┴","U": "∩","V": "Λ","W": "M","X": "X","Y": "⅄","Z": "Z","0": "0","1": "Ɩ","2": "ᄅ","3": "Ɛ","4": "ㄣ","5": "ϛ","6": "9","7": "ㄥ","8": "8","9": "6",",": "'",".": "˙","?": "¿","!": "¡",'"': ",,","'": ",","(": ")",")": "(","[": "]","]": "[","{": "}","}": "{","<": ">",">": "<","&": "⅋","_": "‾",}
- @app.on_message(filters.command("resume", prefixes="."))
- def resume(app, message):
- message.edit_text('<b>Опыт работы - мои проекты:</b>', parse_mode='html')
- @app.on_message(filters.command("code", prefixes="."))
- def code1(app, message):
- text = message.text.split(".code ", maxsplit=1)[1]
- message.edit_text("`" + text + "`")
- @app.on_message(filters.command("flip", prefixes=".") & filters.me)
- def flip(_, message):
- text = message.text.split(".flip", maxsplit=1)[1]
- final_str = ""
- for char in text:
- if char in REPLACEMENT_MAP.keys():
- new_char = REPLACEMENT_MAP[char]
- else:
- new_char = char
- final_str += new_char
- if text != final_str:
- message.edit(final_str)
- else:
- message.edit(text)
- @app.on_message(filters.command(["d", "delete"], prefixes="."))
- def de1(app, message):
- message.edit("КЕК")
- message.delete()
- @app.on_message(filters.command(["hi", "hello"], prefixes="."))
- def hello1(app, message):
- message.edit("Привет, я Всеволод html!")
- @app.on_message(filters.command(["time", "t"], prefixes="."))
- def time1(app, message):
- ti = time.ctime()
- message.edit(str(ti))
- # Команда type
- @app.on_message(filters.command("type", prefixes=".") & filters.me)
- def type(_, message):
- orig_text = message.text.split(".type ", maxsplit=1)[1]
- text = orig_text
- tbp = "" # to be printed
- typing_symbol = "▒"
- while(tbp != orig_text):
- try:
- message.edit(tbp + typing_symbol)
- sleep(0.05) # 50 ms
- tbp = tbp + text[0]
- text = text[1:]
- message.edit(tbp)
- sleep(0.05)
- except FloodWait as e:
- sleep(e.x)
- # Команда взлома ПК
- @app.on_message(filters.command("go", prefixes=".") & filters.me)
- def go(_, message):
- perc = 0
- while(perc < 100):
- try:
- text = "👮 Взлом твоего ПК в процессе ... " + str(perc) + "%"
- message.edit(text)
- perc += random.randint(1, 3)
- sleep(0.1)
- except FloodWait as e:
- sleep(e.x)
- message.edit("🟢 Ты успешно взломан!")
- sleep(3)
- message.edit("😈 Поиск секретных данных ...")
- perc = 0
- while(perc < 100):
- try:
- text = "😈 Поиск секретных данных ... " + str(perc) + "%"
- message.edit(text)
- perc += random.randint(1, 5)
- sleep(0.15)
- except FloodWait as e:
- sleep(e.x)
- message.edit("🤑 Найдены важные данные!!!")
- @app.on_message(filters.command("js", prefixes="."))
- def js(app, message):
- code = message.text.split(".js ", maxsplit=1)[1]
- response = requests.post('https://rextester.com/rundotnet/api',
- data={
- 'LanguageChoice':'23',
- 'Program': code}
- )
- print(code)
- eee = response.text
- d = json.loads(eee)
- er1 = d['Errors']
- er2 = d['Result']
- message.edit_text("Код js:\n<code>" + code + "</code>\nОшибки:\n<code>" + str(er1) + "</code>\n" + "Логи:\n<code>" + str(er2) + "</code>", parse_mode='html')
- @app.on_message(filters.command("me", prefixes="."))
- def mee(app, message):
- #данные пользователя
- name = message.from_user.first_name
- name1 = message.from_user.last_name
- url = message.from_user.username
- iduser = message.from_user.id
- #/данные пользователя
- message.edit_text("Имя: " + str(name) + " " + str(name1) + "\nСсылка: @" + str(url) + "\nID: " + str(iduser))
- app.run()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement