2021-05-13 23:22:04 +05:00
|
|
|
# BML-TG-NOTIFY
|
2021-05-13 22:40:24 +05:00
|
|
|
## Push Notification BML Transcations to Telegram
|
2021-05-14 00:33:16 +05:00
|
|
|

|
2021-05-13 22:40:24 +05:00
|
|
|
|
2021-05-14 00:40:16 +05:00
|
|
|
## Is it safe?
|
2021-05-14 16:51:09 +05:00
|
|
|
- Probably, I will NOT take resposibilty to whatever you do with this script. [See More](LICENSE)
|
|
|
|
- Your BML Username and Password will be saved in PLAIN TEXT!
|
2021-05-14 00:46:40 +05:00
|
|
|
Anyone who has access (or gains access) to your server or computer can read .env file and obtain your BML login credentials!
|
2021-05-13 22:57:53 +05:00
|
|
|
|
2021-05-14 00:40:16 +05:00
|
|
|
## Limitations
|
|
|
|
- At the moment this script can only check 1 account from personal profile.
|
2021-05-14 05:52:26 +05:00
|
|
|
- Script ONLY sends notification for last transaction, so if there more than 1 transacation
|
2021-05-14 14:55:21 +05:00
|
|
|
when script checks for new transactions you will get notification for the last one only.
|
2021-05-14 05:36:04 +05:00
|
|
|
- BML do NOT allow you to be logged in more than 1 session at a time,
|
|
|
|
so when this script runs and if you were using mobile app or website you will be logged out!
|
2021-09-19 23:51:05 +05:00
|
|
|
- If you login to web or mobile app while script is running, It will pause for APP_NORMAL_DELAY seconds befor running again.
|
2021-05-13 22:57:53 +05:00
|
|
|
|
2021-05-14 05:12:35 +05:00
|
|
|
## Getting started.
|
2021-05-14 00:37:26 +05:00
|
|
|
### Requriements
|
|
|
|
`curl` `jq`
|
|
|
|
- Install with whatever package manager you use.
|
|
|
|
- Make SURE they are installed before continuing!
|
2021-05-17 00:26:30 +05:00
|
|
|
### Clone repo and Configure
|
2021-05-13 22:40:24 +05:00
|
|
|
```
|
|
|
|
git clone https://github.com/shihaamabr/bml-tg-notify.git
|
|
|
|
cd bml-tg-notify
|
|
|
|
chmod +x bml-tg-notify.sh
|
2021-05-13 23:30:32 +05:00
|
|
|
cp env.sample .env
|
2021-05-13 22:40:24 +05:00
|
|
|
```
|
2021-09-19 23:51:05 +05:00
|
|
|
- Edit the content of .env to your config (`nano .env`)
|
2021-05-14 05:12:35 +05:00
|
|
|
- [How to obtain BML_ACCOUNTID](https://raw.githubusercontent.com/shihaamabr/bml-tg-notify/main/how-to-obtain-BML_ACCOUNTID.png)
|
2021-09-19 23:51:05 +05:00
|
|
|
### Notes
|
|
|
|
- If the NORAML_DELAY value is less than a certain value (I think 15) your IP could get blocked by CloudFlare for DoS attack.
|
|
|
|
|
2021-05-14 00:46:40 +05:00
|
|
|
### Execute the script
|
2021-05-13 22:40:24 +05:00
|
|
|
```
|
|
|
|
./bml-tg-notify.sh
|
|
|
|
```
|
2021-05-14 05:12:35 +05:00
|
|
|
- Maybe run in a screen to run in background?
|
2021-05-14 05:52:26 +05:00
|
|
|
|
2021-05-14 00:40:16 +05:00
|
|
|
## Bugs
|
2021-05-14 04:16:34 +05:00
|
|
|
- [You tell me :)](https://github.com/shihaamabr/bml-tg-notify/issues/new)
|