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