Advertisement
Olegos

tg userbot

Jun 2nd, 2021
318
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.80 KB | None | 0 0
  1. from pyrogram import Client, filters
  2. from pyrogram.errors import FloodWait
  3. from pyrogram.raw import functions
  4. from pyrogram.types import ChatPermissions
  5.  
  6. import time, requests, json
  7. from time import sleep
  8. import random
  9. import re
  10.  
  11. app = Client(session_name='first_test1')
  12.  
  13.  
  14. store = []
  15.  
  16. 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",",": "'",".": "˙","?": "¿","!": "¡",'"': ",,","'": ",","(": ")",")": "(","[": "]","]": "[","{": "}","}": "{","<": ">",">": "<","&": "⅋","_": "‾",}
  17. @app.on_message(filters.command("resume", prefixes="."))
  18. def resume(app, message):
  19. message.edit_text('<b>Опыт работы - мои проекты:</b>', parse_mode='html')
  20.  
  21. @app.on_message(filters.command("code", prefixes="."))
  22. def code1(app, message):
  23. text = message.text.split(".code ", maxsplit=1)[1]
  24. message.edit_text("`" + text + "`")
  25.  
  26. @app.on_message(filters.command("flip", prefixes=".") & filters.me)
  27. def flip(_, message):
  28. text = message.text.split(".flip", maxsplit=1)[1]
  29. final_str = ""
  30. for char in text:
  31. if char in REPLACEMENT_MAP.keys():
  32. new_char = REPLACEMENT_MAP[char]
  33. else:
  34. new_char = char
  35. final_str += new_char
  36. if text != final_str:
  37. message.edit(final_str)
  38. else:
  39. message.edit(text)
  40.  
  41. @app.on_message(filters.command(["d", "delete"], prefixes="."))
  42. def de1(app, message):
  43. message.edit("КЕК")
  44. message.delete()
  45.  
  46. @app.on_message(filters.command(["hi", "hello"], prefixes="."))
  47. def hello1(app, message):
  48. message.edit("Привет, я Всеволод html!")
  49.  
  50. @app.on_message(filters.command(["time", "t"], prefixes="."))
  51. def time1(app, message):
  52. ti = time.ctime()
  53. message.edit(str(ti))
  54.  
  55. # Команда type
  56. @app.on_message(filters.command("type", prefixes=".") & filters.me)
  57. def type(_, message):
  58. orig_text = message.text.split(".type ", maxsplit=1)[1]
  59. text = orig_text
  60. tbp = "" # to be printed
  61. typing_symbol = "▒"
  62.  
  63. while(tbp != orig_text):
  64. try:
  65. message.edit(tbp + typing_symbol)
  66. sleep(0.05) # 50 ms
  67.  
  68. tbp = tbp + text[0]
  69. text = text[1:]
  70.  
  71. message.edit(tbp)
  72. sleep(0.05)
  73.  
  74. except FloodWait as e:
  75. sleep(e.x)
  76.  
  77. # Команда взлома ПК
  78. @app.on_message(filters.command("go", prefixes=".") & filters.me)
  79. def go(_, message):
  80. perc = 0
  81.  
  82. while(perc < 100):
  83. try:
  84. text = "👮‍ Взлом твоего ПК в процессе ... " + str(perc) + "%"
  85. message.edit(text)
  86.  
  87. perc += random.randint(1, 3)
  88. sleep(0.1)
  89.  
  90. except FloodWait as e:
  91. sleep(e.x)
  92.  
  93. message.edit("🟢 Ты успешно взломан!")
  94. sleep(3)
  95.  
  96. message.edit("😈 Поиск секретных данных ...")
  97. perc = 0
  98.  
  99. while(perc < 100):
  100. try:
  101. text = "😈 Поиск секретных данных ... " + str(perc) + "%"
  102. message.edit(text)
  103.  
  104. perc += random.randint(1, 5)
  105. sleep(0.15)
  106.  
  107. except FloodWait as e:
  108. sleep(e.x)
  109.  
  110. message.edit("🤑 Найдены важные данные!!!")
  111.  
  112. @app.on_message(filters.command("js", prefixes="."))
  113. def js(app, message):
  114. code = message.text.split(".js ", maxsplit=1)[1]
  115. response = requests.post('https://rextester.com/rundotnet/api',
  116. data={
  117. 'LanguageChoice':'23',
  118. 'Program': code}
  119. )
  120. print(code)
  121. eee = response.text
  122. d = json.loads(eee)
  123. er1 = d['Errors']
  124. er2 = d['Result']
  125. message.edit_text("Код js:\n<code>" + code + "</code>\nОшибки:\n<code>" + str(er1) + "</code>\n" + "Логи:\n<code>" + str(er2) + "</code>", parse_mode='html')
  126.  
  127. @app.on_message(filters.command("me", prefixes="."))
  128. def mee(app, message):
  129. #данные пользователя
  130. name = message.from_user.first_name
  131. name1 = message.from_user.last_name
  132. url = message.from_user.username
  133. iduser = message.from_user.id
  134. #/данные пользователя
  135. message.edit_text("Имя: " + str(name) + " " + str(name1) + "\nСсылка: @" + str(url) + "\nID: " + str(iduser))
  136.  
  137.  
  138.  
  139. app.run()
  140.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement