Skip to content

Latest commit

 

History

History
102 lines (69 loc) · 2.41 KB

README.md

File metadata and controls

102 lines (69 loc) · 2.41 KB

Online Book Shop BOT

aiogram aiogram Redis

About

book_github

Link the bot

Telegram Bot

Commands

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 version

  • python~=3.12

Essential libraries

  • aiogram==3.5.0
  • python-dotenv==1.0.1

Installation

To get started with this bot, follow these steps:

  1. Clone this repository to your local machine:

    git clone https://github.com/mexmonjonovuz/Online_Book_Shop_Bot.git
    
  2. Navigate into the project directory:

    cd Online_Book_Shop_Bot
  3. Create a virtual environment:

    python3 -m venv .venv
  4. Activate the virtual environment:

    For macOS / Linux:

    source .venv/bin/activate

    For Windows:

     . .venv\Scripts\activate
  5. Install the required dependencies:

    pip install -r requirements.txt
  6. 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