format tg text
This commit is contained in:
parent
b8b695dfbf
commit
155f846406
@ -15,6 +15,7 @@ source .env
|
|||||||
BOTSTATUS$(curl -si https://bmlstatus.shihaam.dev/login | head -n1 | awk '{print $2}')
|
BOTSTATUS$(curl -si https://bmlstatus.shihaam.dev/login | head -n1 | awk '{print $2}')
|
||||||
if [ "$BOTSTATUS" = "69" ]
|
if [ "$BOTSTATUS" = "69" ]
|
||||||
then
|
then
|
||||||
|
TGTEXT=$(echo Status: $TEXT | sed "s/ /%20/g")
|
||||||
curl -s $TG_BOTAPI$TG_BOT_TOKEN/sendMessage?chat_id=$PROXY_ALERT_CHATID'&'text=${TGTEXT}${BOTSTATUS}
|
curl -s $TG_BOTAPI$TG_BOT_TOKEN/sendMessage?chat_id=$PROXY_ALERT_CHATID'&'text=${TGTEXT}${BOTSTATUS}
|
||||||
STATUS_OLD=$STATUS
|
STATUS_OLD=$STATUS
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user