This commit is contained in:
Kseninia Mikhaylova 2024-05-28 10:39:57 +03:00
parent 94798925b5
commit 4d98a2623e
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ async def tg_intgr_get(request: Request):
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}/'
mentions = re.findall(rf"\[USER=({bx_id})\]", comment) mentions = re.findall(rf"\[USER=({bx_id})\]", comment)
logger.info(comment)
logger.info(mentions)
for _ in mentions: for _ in mentions:
logger.info("https://api.telegram.org/bot{TOKEN}/sendMessage?chat_id={tg_id}&text={comment}") logger.info("https://api.telegram.org/bot{TOKEN}/sendMessage?chat_id={tg_id}&text={comment}")
requests.get( requests.get(