aboutsummaryrefslogtreecommitdiff
path: root/handlers/on_message.py
blob: ee514eeec8b3bff47e8d2cac0a84b05436f43d60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from shared.instances import dp
from aiogram import types as t
from utils import filters as f


async def сосалка(msg: t.Message):
    text = msg.text or msg.caption
    if text.startswith('/'):
        return False
    with open('samples.txt', 'a+') as file:
        file.write(text.replace('§', '').lower() + '§')
    return False


@dp.message_handler(f.message.is_chat, f.message.has_text, сосалка, content_types=[t.ContentType.ANY])
async def ХУЙ():
    pass