Skip to content

Simple bot that uses a Telegram API to track financial spendings

License

Notifications You must be signed in to change notification settings

IslaMurtazaev/TrackMyMoneyBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple bot that uses a Telegram API to track financial spendings

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages