Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @bot.on.chat_message()
- async def chat_message_handler(message: Message):
- text_length = len(message.text)
- chat_path = f"{dir_to_txt}{message.peer_id}.txt"
- picture_path = f"{dir_to_pic}{message.peer_id}.txt"
- if message.text in [
- "g",
- "d",
- "gen",
- "г",
- "/ген",
- "dem",
- "/g",
- "ген",
- "д",
- "дем",
- "инфо",
- "info",
- "i",
- "Info",
- "Инфо",
- "I",
- "/info",
- "/Info",
- "команды",
- "помощь",
- "help",
- "/помощь",
- "Помощь",
- "Команды",
- "/Помощь",
- "Help"
- "/help"
- "/помощь",
- "/start",
- "/wipe",
- "wipe",
- "wipe all",
- "wipe photo",
- "wipe text",
- "/wipe all",
- "/wipe photo",
- "/wipe text",
- "h"
- ]:
- return
- if (
- message.text.startswith("http://")
- or message.text.startswith("https://")
- or message.text.startswith("@")
- or message.text.startswith("vk.com")
- or message.text.startswith("https://vk.com/")
- or message.text.startswith("[id")
- or message.text.startswith("[club")
- ):
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement