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
-
Clone the repository:
git clone https://github.com/Ziyodullodev/telegram-bot-shablon-aiogram.git cd telegram-bot-shablon-aiogram
-
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 filesfunctions/- Utility functions including database operationshandlers/- Bot command and message handlersmain.py- Bot entry point
Contributing
Contributions are welcome! Feel free to fork and submit pull requests.
License
MIT License
Happy bot building! 🚀
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ziyodev_tg_bot-0.2.0.tar.gz.
File metadata
- Download URL: ziyodev_tg_bot-0.2.0.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7691d7832fd0cad3d80b67008f0b725f87af667cf92b5207b786f6cae3f9ceec
|
|
| MD5 |
3bf52ed2543241b6d5c1ae1adf378221
|
|
| BLAKE2b-256 |
a6d9d6b795c749caa7b4995fce450f57370bc9e757ec47d61ad8df2667e218de
|
File details
Details for the file ziyodev_tg_bot-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ziyodev_tg_bot-0.2.0-py3-none-any.whl
- Upload date:
- Size: 31.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2eee0a0d55b46205b9b3a9379c66413be8632c2a9245fb8382102bf350e5a853
|
|
| MD5 |
202992e8ae5258297322934ab4604803
|
|
| BLAKE2b-256 |
2311efc2458392cd5fcb46249077e67b1c766110905703c574f3d7fed502c701
|