diff options
Diffstat (limited to 'handlers/msg.py')
| -rw-r--r-- | handlers/msg.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/handlers/msg.py b/handlers/msg.py index 12dfa6c..dca295f 100644 --- a/handlers/msg.py +++ b/handlers/msg.py | |||
| @@ -8,13 +8,11 @@ async def сосалка(msg: t.Message): | |||
| 8 | text = msg.text or msg.caption | 8 | text = msg.text or msg.caption |
| 9 | if text.startswith("/"): | 9 | if text.startswith("/"): |
| 10 | return False | 10 | return False |
| 11 | with open("samples.txt", "a+") as file: | 11 | with open(f"data/{msg.chat.id}", "a+") as file: |
| 12 | file.write(text.lower().replace("§", "") + "§") | 12 | file.write(text.lower().replace("§", "") + "§") |
| 13 | return False | 13 | return False |
| 14 | 14 | ||
| 15 | 15 | ||
| 16 | @dp.message_handler( | 16 | @dp.message_handler(f.message.has_text, сосалка, content_types=[t.ContentType.ANY]) |
| 17 | f.message.is_chat, f.message.has_text, сосалка, content_types=[t.ContentType.ANY] | ||
| 18 | ) | ||
| 19 | async def ХУЙ(): | 17 | async def ХУЙ(): |
| 20 | pass | 18 | pass |
