Advertisement
l1von

ыфвфыв

Dec 14th, 2020
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. @bot.on.chat_message()
  2. async def chat_message_handler(message: Message):
  3. text_length = len(message.text)
  4. chat_path = f"{dir_to_txt}{message.peer_id}.txt"
  5. picture_path = f"{dir_to_pic}{message.peer_id}.txt"
  6. if message.text in [
  7. "g",
  8. "d",
  9. "gen",
  10. "г",
  11. "/ген",
  12. "dem",
  13. "/g",
  14. "ген",
  15. "д",
  16. "дем",
  17. "инфо",
  18. "info",
  19. "i",
  20. "Info",
  21. "Инфо",
  22. "I",
  23. "/info",
  24. "/Info",
  25. "команды",
  26. "помощь",
  27. "help",
  28. "/помощь",
  29. "Помощь",
  30. "Команды",
  31. "/Помощь",
  32. "Help"
  33. "/help"
  34. "/помощь",
  35. "/start",
  36. "/wipe",
  37. "wipe",
  38. "wipe all",
  39. "wipe photo",
  40. "wipe text",
  41. "/wipe all",
  42. "/wipe photo",
  43. "/wipe text",
  44. "h"
  45. ]:
  46. return
  47. if (
  48. message.text.startswith("http://")
  49. or message.text.startswith("https://")
  50. or message.text.startswith("@")
  51. or message.text.startswith("vk.com")
  52. or message.text.startswith("https://vk.com/")
  53. or message.text.startswith("[id")
  54. or message.text.startswith("[club")
  55. ):
  56. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement