Skip to content

This telegram bot is for "Telegram Mini App Contest"

Notifications You must be signed in to change notification settings

Rikoze777/tarot_app_contest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tarot bot

tarot-bot - a mini-application that provides a demo process for receiving tarot readings. The user is given the opportunity to purchase a subscription with which he can choose all types of tarot readings.

Deploy with Docker

If you want to deploy it easy with Docker. Read this.

Installing

  • Deploy a virtual environment
  • Install libraries:
cd backend/ && pip install -r requiremenets.txt
  • Create a .env file with the following variables in backend folder:

    1. BOT_API_TOKEN='Your bot token'
    2. ALLOWED_HOSTS='Your hosts'
    3. SECRET_KEY='Django secret key'
    4. DEBUG='True for dev and False for prod'
    5. PROVIDER_TOKEN='provider token from BotFather'
  • Perform migrations

cd backend/ && python3 manage.py migrate
cd backend/ && python3 manage.py runserver
  • Run bot in another terminal:
cd backend/bot/ && python3 bot.py

About

This telegram bot is for "Telegram Mini App Contest"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published