diff --git a/bml-tg-notify.sh b/bml-tg-notify.sh index e86607d..fa96015 100755 --- a/bml-tg-notify.sh +++ b/bml-tg-notify.sh @@ -58,6 +58,8 @@ req_history if [ "$LOGIN_STATUS" != "true" ] then + echo "Looks like app or web was opened... checking again in $APP_OPEN_DELAY" + sleep $APP_OPEN_DELAY login break & loop fi diff --git a/env.sample b/env.sample index 90fcad4..8222851 100644 --- a/env.sample +++ b/env.sample @@ -3,6 +3,8 @@ BML_USERNAME='' #Your BML Username BML_PASSWORD='' #Your BML Password BML_ACCOUNTID='' #Your BML Account ID,NOT to be confused with account number, read the README.md on how to obtain this. +APP_OPEN_DELAY='600' + TG_BOT_TOKEN='' #Your Telegram Bot API Token, Contact @BotFather on Telegram to obtain token TG_CHATID='' #Your Telegram chat ID, This could be your user, group, supergroup or channel ID, add "-100" first if supergroup or channel