string
This commit is contained in:
parent
48eee987dd
commit
158d95e87b
15
app/main.py
15
app/main.py
|
@ -56,17 +56,10 @@ async def tg_intgr_get(request: Request):
|
||||||
data = requests.get(get_comment_hook)
|
data = requests.get(get_comment_hook)
|
||||||
data_json = data.json()
|
data_json = data.json()
|
||||||
comment = f"\nhttps://crm.svs-tech.pro/company/personal/user/{bx_id}/tasks/task/view/{task_id}/"
|
comment = f"\nhttps://crm.svs-tech.pro/company/personal/user/{bx_id}/tasks/task/view/{task_id}/"
|
||||||
comment += re.sub(
|
comment_data = data_json["result"]["POST_MESSAGE"]
|
||||||
'"',
|
comment_data = re.sub('"', '', comment_data)
|
||||||
"",
|
comment += " ".join(comment_data.split(" ")[:100])
|
||||||
" ".join(
|
|
||||||
re.sub(
|
|
||||||
r"((\[)(.*?)(]))",
|
|
||||||
"",
|
|
||||||
data_json["result"]["POST_MESSAGE"].split(" ")[:100],
|
|
||||||
)
|
|
||||||
),
|
|
||||||
)
|
|
||||||
comment += f'\nот {data_json["result"]["AUTHOR_NAME"]}'
|
comment += f'\nот {data_json["result"]["AUTHOR_NAME"]}'
|
||||||
|
|
||||||
mentions = re.findall(
|
mentions = re.findall(
|
||||||
|
|
Loading…
Reference in New Issue