A bot for signing up for a marriage loan in Iran.
The code works for this website https://ve.cbi.ir/TasRequest.aspx that looks like this:
- Install docker and docker-compose. (Look up tutorial elsewhere)
- Create a telegram bot. (Look up tutorial elsewhere)
Note: The user has to send the sms code to the telegram bot when asked.
- Clone the repo:
git clone https://github.com/Ali-Flt/marriage-loan-bot.git && cd marriage-loan-bot
- Create
config.yaml
based onconfig.yaml.example
(skip telegram_user_id and telegram_admin_id) for now. - Run
docker compose build
. - Run
./create_telegram_session.sh
. - Run
./get_user_ids.sh
and use the result as telegram_user_id and telegram_admin_id inconfig.yaml
. - Set a VNC password (SE_VNC_PASSWORD) in
docker-compose.yml
. - Run
docker compose up -d
. - Install a VNC viewer
- Use the VNC viewer to connect to
127.0.0.1:5900
(change IP if the bot is installed on a remote machine). - Open shell in VNC and run
python3 main.py
When the bot reaches the second page it will send a message to the telegram user asking for the SMS code. The user should send the code immediately.
Note: An available bank and bank branch is selected randomly and there are no custom bank selection supported as of right now.
Enjoy :) Don't forget to leave a star on the top right corner.
Consider buying me a coffee if this helped you.