Landing page | Verified | Failed to verify |
---|---|---|
- Create a new bot on telegram and note the
secret token
and the botusername
: Creating a new bot - Telegram documentation - Create a new account on hCaptcha and note the
sitekey
and thesecret token
- Invite the bot to your Telegram channel and set it as admin
- Navigate to directory in terminal
- Rename
.env.sample
to.env
- Set
TELEGRAM_TOKEN
,TELEGRAM_USERNAME
,HCAPTCHA_SECRET
,HCAPTCHA_SITE_KEY
in.env
- Install
pipenv
- Install dependencies:
pipenv install
- Enter virtualenv:
pipenv shell
- Run tests:
pytest
For this challenge I decided to use heroku for deployment
- Signup for Heroku and install Heroku CLI
- Authenticate to Heroku:
heroku login
- Create heroku app:
heroku create
and take note of the app url - Set Heroku Buildpack:
heroku buildpacks:set heroku/python
- Deploy app:
git push heroku master