logger
This commit is contained in:
parent
5416b75597
commit
b0cd616020
|
@ -62,12 +62,12 @@ async def tg_intgr_get(request: Request):
|
||||||
|
|
||||||
mentions = re.findall(rf"\[USER=({bx_id})\]", comment)
|
mentions = re.findall(rf"\[USER=({bx_id})\]", comment)
|
||||||
for _ in mentions:
|
for _ in mentions:
|
||||||
|
logger.info("https://api.telegram.org/bot{TOKEN}/sendMessage?chat_id={tg_id}&text={comment}")
|
||||||
requests.get(
|
requests.get(
|
||||||
f"https://api.telegram.org/bot{TOKEN}/sendMessage?chat_id={tg_id}&text={comment}"
|
f"https://api.telegram.org/bot{TOKEN}/sendMessage?chat_id={tg_id}&text={comment}"
|
||||||
)
|
)
|
||||||
|
|
||||||
return {"status": "success"}
|
return {"status": "success"}
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.info(comment)
|
|
||||||
logger.info(e)
|
logger.info(e)
|
||||||
return {"status": "error"}
|
return {"status": "error"}
|
||||||
|
|
Loading…
Reference in New Issue