Skip to content

Ali-Flt/marriage-loan-bot

Repository files navigation

marriage-loan-bot (ربات وام ازدواج)

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:

How to use:

  1. Install docker and docker-compose. (Look up tutorial elsewhere)
  2. Create a telegram bot. (Look up tutorial elsewhere)

Note: The user has to send the sms code to the telegram bot when asked.

  1. Clone the repo: git clone https://github.com/Ali-Flt/marriage-loan-bot.git && cd marriage-loan-bot
  2. Create config.yaml based on config.yaml.example (skip telegram_user_id and telegram_admin_id) for now.
  3. Run docker compose build.
  4. Run ./create_telegram_session.sh.
  5. Run ./get_user_ids.sh and use the result as telegram_user_id and telegram_admin_id in config.yaml.
  6. Set a VNC password (SE_VNC_PASSWORD) in docker-compose.yml.
  7. Run docker compose up -d.
  8. Install a VNC viewer
  9. Use the VNC viewer to connect to 127.0.0.1:5900 (change IP if the bot is installed on a remote machine).
  10. 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.

Donations

Consider buying me a coffee if this helped you.

"Buy Me A Coffee"

Stargazers over Time

Stargazers over time

About

A bot for getting marriage loan.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published