aboutsummaryrefslogtreecommitdiff
path: root/handlers/msg.py
blob: dca295f215295ac66595ea4e7ec3c87b40c4854a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from aiogram import types as t

from shared.instances import dp
from utils import filters as f


async def сосалка(msg: t.Message):
    text = msg.text or msg.caption
    if text.startswith("/"):
        return False
    with open(f"data/{msg.chat.id}", "a+") as file:
        file.write(text.lower().replace("§", "") + "§")
    return False


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