/steepshot-telegram

Primary LanguagePythonMIT LicenseMIT

Steepshot Telegram bot

This bot allows you to post photos to Steepshot using your Steem-account. Click here to start posting your great pics!

How to deploy telegram bot in your host
  1. Enter your domain name in "settings.py" line 20.

For example:

20. WEBHOOK_HOST = 'bot.mydomain.org'
  1. Change the file "nginx.conf.j2", lines 5,6. Enter path to your ssl certificate.

For example:

5. ssl_certificate /path/to/file/fullchain.pem;
6. ssl_certificate_key /path/to/file/privkey.pem;
  1. Change deploy variables in "deploy_settings.py" file, lines 3,6 and 42.

For example:

3. HOST = '138.10.24.35'
...
6. CURRENT_HOST = 'bot.mydomain.org'
...
42. DB_PASSWORD = 'NiCE0OqyPtxZ'
  1. If you deploying first time you need to run the following command:
fab production first_time_deploy

otherwise

fab production deploy

NOTE

During deploying you will see the following message: Please enter your token:. It means that you need enter your private telegram bot token.