A Telegram bot that interacts with users to create orders from an admin updated store. The PyTelegramBotAPI is used to interact with the Telegram API. Store data is stored in a sqlite database and interactions with the database are handled by SQLAlchemy.
- Python 3.10 and up (Should work in 3.9, but you would have to convert
match-case
statements toif
statements) - Cloudinary account (for image uploads), or just modify the code to use a different image hosting service, or just remove the image upload functionality.
Using a virtual environment is recommended.
python3 -m venv venv
source venv/bin/activate
Use the package manager pip to install the requirements from requirements.txt.
pip install -r requirements.txt
Copy the .env.example file to .env and fill in the values.
The project was meant to be hosted on pythonanywhere, so the main.py
file is meant
to be run as a flask web app.
To run the bot locally, you can use the bot.py
file.
python bot.py
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.