The bot has several commands that can be used to access its features:
/start
: Start the bot/help
: Help info the bot/change_language
: Change Language The Bot
- python~=3.12
- aiogram==3.5.0
- python-dotenv==1.0.1
To get started with this bot, follow these steps:
-
Clone this repository to your local machine:
git clone https://github.com/mexmonjonovuz/Online_Book_Shop_Bot.git
-
Navigate into the project directory:
cd Online_Book_Shop_Bot
-
Create a virtual environment:
python3 -m venv .venv
-
Activate the virtual environment:
For macOS / Linux:
source .venv/bin/activate
For Windows:
. .venv\Scripts\activate
-
Install the required dependencies:
pip install -r requirements.txt
-
I have created a copy of the .env conf file for you to use .env.example
In the root directory, create a .env file and add your environment variables:
- Run the bot using(bash or shell)
python3 main.py
chmod +x main.py ./main.py
- Create a new bot on Telegram by talking to the BotFather, and obtain the API token.