Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.08 KB

README.md

File metadata and controls

56 lines (38 loc) · 1.08 KB

TrackMyMoneyBot

Simple bot that uses a Telegram API to track financial spendings

Set up

  • create a virtual environment inside a root folder
virtualenv --no-site-packages --distribute -p /usr/bin/python3 venv
  • enter virtual environment
source venv/bin/activate
  • install dependencies
pip install -r requirements.txt
  • run migrations
python manage.py migrate
  • create a local_settings.py file with your django SECRET_KEY, telegram BOT_TOKEN and APP_URL in main folder. Optionally you can add TIME_ZONE and ACTIVATION_KEY for customization.

To generate BOT_TOKEN you should create a new bot.

Expample:

SECRET_KEY = "my_secret_key"
BOT_TOKEN = "my_bot_token"
APP_URL = "https://my_domain.com"

Using this information, after you start the server, bot will automatically set webhook.

Start server

  • enter virtual environment
source venv/bin/activate
  • start django server
python manage.py runserver