It's a hack to automate ngrok with telegram bot in python.
- Create a telegram bot, follow this guide : https://core.telegram.org/bots
- Fill the
.env
file with your credentials correctly.
Install requirements modules.
$ python3 -m pip install -r requirements.txt
Start the telegram bot daemon.
$ python3 daemon.py start
$ <PID>
If you want to send email with notification, open telegram_bot.py
, change the line 79 and add True
, as follow:
79 msg = service.start(update.message.text.lower(),True)
Verify if put your email credentials in the .env