aboutsummaryrefslogtreecommitdiff
path: root/handlers/msg.py
diff options
context:
space:
mode:
Diffstat (limited to 'handlers/msg.py')
-rw-r--r--handlers/msg.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/handlers/msg.py b/handlers/msg.py
new file mode 100644
index 0000000..58f3213
--- /dev/null
+++ b/handlers/msg.py
@@ -0,0 +1,17 @@
1from shared.instances import dp
2from aiogram import types as t
3from utils import filters as f
4
5
6async def сосалка(msg: t.Message):
7 text = msg.text or msg.caption
8 if text.startswith('/'):
9 return False
10 with open('samples.txt', 'a+') as file:
11 file.write(text.lower().replace('§', '') + '§')
12 return False
13
14
15@dp.message_handler(f.message.is_chat, f.message.has_text, сосалка, content_types=[t.ContentType.ANY])
16async def ХУЙ():
17 pass