logger
This commit is contained in:
parent
94798925b5
commit
4d98a2623e
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue