Although BML has a great app, it lacks in certain aspects. Not receiving notifications for incoming transactions is particularly annoying.
Its simple it just checks the transaction history from the bml web api and adds any transactions thats not currently saved to the db to the db then sends texts to telegram channel using telegram bot api.
You must have python 3 installed
git clone https://github.com/Dharisd/bml_notifier
pip install -r requiremnts.txt
BML_USERNAME
your BML account username
BML_PASSWORD
Your BML account password
BML_ACC
your BML account number as in "https://www.bankofmaldives.com.mv/internetbanking/api/account/{BML_ACCOUNT}/history/today"
TELEGRAM_TOKEN
Token for the telegram bot
TELEGRAM_CHANNEL
Chatid of the telegram channel you want the bot to post to
python init_db.py
python update_history.py
update_history.py can take --delay in seconds as a paramter. This controls the delay befor subsequent queries