Skip to main content

Aiogram frameworkida yozilgan Telegram bot shabloni generatori

Project description

Telegram Bot Template with Aiogram

This repository provides a template for building Telegram bots using the Aiogram framework in Python. It is designed to help you quickly start your bot development with a clean and modular structure.

Features

  • Asynchronous Telegram Bot API with Aiogram
  • Modular code organization
  • Database integration utilities
  • Easy to extend with custom handlers and commands

Installation

Option 1: Install via PyPI (Recommended 🚀)

You can install this template generator directly from PyPI:

pip install ziyodev-tg-bot

Once installed, you can generate a new bot project anywhere with a single command:

ziyodev-tg-bot init my-new-bot

This creates a new folder my-new-bot containing all the template structure. Then, simply:

cd my-new-bot
# Configure your BOT_TOKEN in src/.env
python src/main.py

Option 2: Clone from GitHub

  1. Clone the repository:

    git clone https://github.com/Ziyodullodev/telegram-bot-shablon-aiogram.git
    cd telegram-bot-shablon-aiogram
    
  2. Create venv and run:

    python -m venv venv
    source venv/bin/activate
    pip install -r requirements.txt
    cp src/.env.example src/.env
    # Configure BOT_TOKEN in src/.env
    python src/main.py
    

Configuration

Set your Telegram Bot Token in the environment or configuration file as needed.

Running the Bot

Run the bot with:

python -m src.main

Project Structure

  • src/ - Source files
    • functions/ - Utility functions including database operations
    • handlers/ - Bot command and message handlers
    • main.py - Bot entry point

Contributing

Contributions are welcome! Feel free to fork and submit pull requests.

License

MIT License


Happy bot building! 🚀

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ziyodev_tg_bot-0.1.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ziyodev_tg_bot-0.1.0-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file ziyodev_tg_bot-0.1.0.tar.gz.

File metadata

  • Download URL: ziyodev_tg_bot-0.1.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for ziyodev_tg_bot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 db2daba8a08162c8be6fe9e81c751b39edb2f65a10a9b1bbc24d8bcb0a4a492f
MD5 79ab428dd72b66cb75e2950f376fe422
BLAKE2b-256 4b8f7796ce13fd39f4cf65478f586c3a4dd0a7268e598b9fbdd02f1b38224cf2

See more details on using hashes here.

File details

Details for the file ziyodev_tg_bot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ziyodev_tg_bot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for ziyodev_tg_bot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b49e294712fc3194f93173dd81a9402211e450ed68fc0396af7f0494c01ed39a
MD5 58a8f23dc179461ca0f800ac1bb67688
BLAKE2b-256 0d88c0b66f8c0c9476b62c0c9dabe5f498117b06cc6906f835cb2a63949b03e8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page