fix issue with 3 name people

This commit is contained in:
Shihaam Abdul Rahman 2021-05-12 08:26:15 +05:00
parent eb79e10f4d
commit 190ad4d606
2 changed files with 5 additions and 2 deletions

View File

@ -16,3 +16,6 @@ edit the contents of .env to your config
chmod +x bml-tg-notify.sh
./bml-tg-notify.sh
```
### Bugs
- You tell me :)

View File

@ -28,8 +28,8 @@ else
TRANFERFROM=$(echo $HISTORY | jq -r .narrative3 | head -n1)
echo From: $TRANFERFROM
echo MVR: $TRANSFERAMOUNT
TRANFERFROM=`echo "$TRANFERFROM" | sed "s/ /%20/"`
curl -s ${TG_BOTAPI}${TG_BOT_TOKEN}/sendMessage?chat_id=${TG_CHATID}'&'text=From:%20${TRANFERFROM}%0AMVR:%20${TRANSFERAMOUNT} | jq
TRANFERFROM=`echo "$TRANFERFROM" | sed "s/ /%20/g"`
curl -s $TG_BOTAPI$TG_BOT_TOKEN/sendMessage?chat_id=$TG_CHATID'&'text=From:%20$TRANFERFROM%0AMVR:%20$TRANSFERAMOUNT > /dev/null
fi
sleep $SLEEP
done