- Python (>= 3.8.10)
- Pip (>= 21.2.4)
- MariaDB (>= 10.3.9) (or MySQL)
- virtualenv (>= 20.8.1) (if setting up project in virtual environment)
-
Setup Virtual Environment
$ python -m venv venv
-
Activate Virtual Environment
$ source venv/bin/activate
-
Update pip to latest version
$ python -m pip install --upgrade pip
-
Repeat the above steps to set up the project in the virtual environment Run the following code to deactivate the virtual environment
$ deactivate
Note: Run all future commands after activating virtual environment to ensure consistencies
-
Install Python Dependencies
$ pip install -r requirements.txt
-
Create the environment file (make a copy of
env.sample
and rename it to.env
). Add the details for each environment variable.TELEGRAM_BOT_TOKEN=<put_your_telegram_bot_token_here>
-
Create database
$ python setup.py
-
Run the python telegram server
$ python main.py