diff --git a/app/main.py b/app/main.py index c10cf7e..8c0cc50 100644 --- a/app/main.py +++ b/app/main.py @@ -55,7 +55,7 @@ async def tg_intgr_get(request: Request): ) data = requests.get(get_comment_hook) data_json = data.json() - comment = re.sub(r"((\[)(.*?)(]))", "", data_json["result"]["POST_MESSAGE"]).split(' ')[:100] + comment = ' '.join(re.sub(r"((\[)(.*?)(]))", "", data_json["result"]["POST_MESSAGE"]).split(' ')[:100]) comment += f'\nот {data_json["result"]["AUTHOR_NAME"]}' comment += f'\nhttps://crm.svs-tech.pro/company/personal/user/{bx_id}/tasks/task/view/{task_id}/'