From 6635a72f772c1953a89e9dc5ca702cdaf4c7f60b Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Tue, 18 Jun 2024 09:22:56 +0300 Subject: [PATCH] string --- app/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 2aa2f4a..c062e4d 100644 --- a/app/main.py +++ b/app/main.py @@ -60,7 +60,7 @@ async def tg_intgr_get(request: Request): re.sub( r"((\[)(.*?)(]))", "", - re.sub('"', "", ' '.join(data_json["result"]["POST_MESSAGE"].split(" ")[:100])), + re.sub('"', "", data_json["result"]["POST_MESSAGE"]).split(" ")[:100], ) ) comment += f'\nот {data_json["result"]["AUTHOR_NAME"]}'