Skip to content

Poxygen0/py-telegram-bots

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“¦ Python Telegram Bots Collection

This repository contains multiple self-contained Telegram bots, each organized in its own folder with its own dependencies and utilities.

Each bot includes:

  • its own requirements.txt
  • its own code and utilities
  • no shared dependencies
  • isolated environment support

This repo acts as a monorepo, but each bot behaves like an independent project.


πŸ“ Folder Structure

py-telegram-bots/
β”œβ”€β”€ bot_a/
β”‚   β”œβ”€β”€ main.py
β”‚   β”œβ”€β”€ requirements.txt
β”‚   β”œβ”€β”€ handlers/
β”‚   └── utils/
β”œβ”€β”€ bot_b/
β”‚   β”œβ”€β”€ main.py
β”‚   β”œβ”€β”€ requirements.txt
β”‚   └── utils/
└── bot_c/
    β”œβ”€β”€ main.py
    β”œβ”€β”€ requirements.txt
    └── utils/

Each folder represents one standalone bot.


🧩 Clone Only One Bot (Recommended)

If you only want one specific bot, you do NOT need to clone the whole repository.

Use Git sparse checkout to download only the folder you want:

git clone --filter=blob:none --sparse https://github.com/Poxygen0/py-telegram-bots.git
cd py-telegram-bots
git sparse-checkout set bot_name_here

Replace bot_name_here with the name of the bot folder, for example:

bot_a
bot_b
bot_c

βœ” This will download only that folder, not the entire repo.
βœ” Other bot folders will not be downloaded.


▢️ Running a Bot

After cloning the bot folder you want:

cd bot_name_here
pip install -r requirements.txt
python main.py

πŸ›  Requirements

  • Python 3.8+
  • A Telegram Bot Token (via @BotFather)
  • Some bots may require your API ID & API HASH from telegram
  • Bot-specific Python packages listed in each bot’s requirements.txt

πŸ§ͺ Adding a New Bot

To add a new bot:

  1. Create a new folder with the bot’s name.
  2. Add bot code (main.py recommended).
  3. Add a requirements.txt.
  4. Keep utilities inside that bot’s folder.
  5. Commit and push.

Example:

py-telegram-bots/
└── new_bot/
    β”œβ”€β”€ main.py
    β”œβ”€β”€ requirements.txt
    └── utils/

🀝 Contributing

  1. Fork the repository
  2. Create a branch
  3. Add or update bots
  4. Submit a pull request

πŸ“œ License

MIT License. Do whatever you want with the code.

About

A collection of telegram bots made with python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages