Skip to content

MoldingInfoBot is a Telegram bot built with aiogram 2.24, allowing users to access molding information, message admins, and receive notifications and advertisements. The bot uses SQLite for storing user data, molding details, and admin announcements.

Notifications You must be signed in to change notification settings

dostonshernazarov/Tyaga-bazar

Repository files navigation

MoldingInfoBot

Overview

MoldingInfoBot is a Telegram bot built using the aiogram 2.24 library. This bot allows users to get information about moldings, send messages to admins, and receive advertisements and notifications from admins. The bot utilizes SQLite for database management.

Features

  • Information Retrieval: Users can get detailed information about various moldings.
  • Admin Announcements: Admins can send advertisements and notifications to all users.
  • User Messaging: Users can send messages to the admins through the bot.
  • SQLite Database: Stores user data, molding information, and admin announcements.

Getting Started

Prerequisites

Make sure you have the following installed:

  • Python 3.7 or higher
  • pip (Python package installer)
  • A Telegram account and a bot token from BotFather

Installation

  1. Clone the repository:

    git clone https://github.com/dostonshernazarov/Tyaga-bazar.git
    cd Tyaga-bazar
  2. Install the required packages:

    pip install -r requirements.txt
  3. Set up your bot token and admin ID:

    • Create a .env file in the root directory.
    • Add your bot token and admin ID to the .env file:
      BOT_TOKEN=your_bot_token_here
      ADMIN_ID=your_admin_id_here

Usage

  1. Run the bot:

    python app.py
  2. Open your Telegram app and search for your bot using its username. Start a chat with your bot and use the available commands.

Project Structure

  • app.py: The main bot application file.
  • handlers/: Directory containing handler modules for different bot commands and events.
  • utils/: Utility functions and helpers.
  • database/: Contains SQLite database files and scripts.
  • requirements.txt: Lists all the dependencies required for the project.

Dependencies

All the dependencies required for this project are listed in the requirements.txt file. Below are the main libraries used:

  • aiogram==2.24: For building the Telegram bot.
  • python-dotenv: For loading environment variables from a .env file.
  • sqlite3: For database management.

To install the dependencies, run:

pip install -r requirements.txt

About

MoldingInfoBot is a Telegram bot built with aiogram 2.24, allowing users to access molding information, message admins, and receive notifications and advertisements. The bot uses SQLite for storing user data, molding details, and admin announcements.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages