From 39f10be7fd667337783a28ec11bd24dfb4cf00ee Mon Sep 17 00:00:00 2001 From: vrubel Date: Sat, 20 Jun 2026 08:20:57 +0000 Subject: [PATCH] =?UTF-8?q?=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20@username=20=D0=B8=D0=B7=20=D0=B2=D1=81=D0=B5=D0=B3?= =?UTF-8?q?=D0=BE=20=D1=82=D0=B5=D0=BA=D1=81=D1=82=D0=B0,=20=D0=B7=D0=B0?= =?UTF-8?q?=D0=BC=D0=B5=D0=BD=D0=B0=20=D0=9A=D0=BE=D0=BD=D0=B5=D1=86=20?= =?UTF-8?q?=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BD?= =?UTF-8?q?=D0=B0=20=D0=9F=D0=B8=D0=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/bot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/bot.py b/app/bot.py index 55c1cbc..0a5dfc0 100644 --- a/app/bot.py +++ b/app/bot.py @@ -66,11 +66,12 @@ def get_ogg_duration(path: str) -> int: def clean_text(text: str) -> str: text = emoji.replace_emoji(text, '') + text = re.sub(r'@\S+\s*', '', text) text = re.sub(r'[ \t]+', ' ', text) text = re.sub(r'\n{2,}', '\n', text) text = text.strip() if text: - text += '\nКонец сообщения.' + text += '\nПип.' return text