A Telegram bot for Doscom community management with tagall and division management features.
/tagall_{division}or@all {division}- Tag all members in a specific division/tagallor@all- Tag all members in the current group (batches of 10)/sudo- Admin commands for division management/sudo tagall_append <division> <id>- Add user to division/sudo tagall_deappend <division> <id>- Remove user from division/sudo del_me- Delete replied bot message/sudo help- Show help
- Python 3.10+
- Pyrogram (pyrofork)
- Telegram Bot Token (from @BotFather)
- Telegram API credentials (from my.telegram.org)
- Clone the repository
- Create virtual environment:
python -m venv venv source venv/bin/activate - Install dependencies:
pip install -r requirements.txt
- Create
.envfile with your credentials:API_ID=your_api_id API_HASH=your_api_hash TOKEN=your_bot_token - Run:
python main.py
- Create
.envfile with your credentials - Run:
docker compose up -d
config.json stores division members:
{
"pemro": [123456789, 987654321],
"data": [],
"jaringan": [],
"crevmed": []
}doscombot/
├── main.py # Entry point and module loader
├── config.json # Division member data (mounted in Docker)
├── modules/
│ ├── __init__.py
│ ├── tagall.py # Tagall commands
│ └── sudo.py # Admin commands
├── requirements.txt
├── Dockerfile
├── docker-compose.yml
├── .env # Environment variables
├── .gitignore
└── LICENSE
This project is licensed under the GPL-2.0 License - see the LICENSE file for details.