diff options
Diffstat (limited to 'handlers/msg.py')
| -rw-r--r-- | handlers/msg.py | 17 |
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 @@ | |||
| 1 | from shared.instances import dp | ||
| 2 | from aiogram import types as t | ||
| 3 | from utils import filters as f | ||
| 4 | |||
| 5 | |||
| 6 | async 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]) | ||
| 16 | async def ХУЙ(): | ||
| 17 | pass | ||
