Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

doscombot

A Telegram bot for Doscom community management with tagall and division management features.

Features

  • /tagall_{division} or @all {division} - Tag all members in a specific division
  • /tagall or @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

Requirements

  • Python 3.10+
  • Pyrogram (pyrofork)
  • Telegram Bot Token (from @BotFather)
  • Telegram API credentials (from my.telegram.org)

Installation

Local

  1. Clone the repository
  2. Create virtual environment:
    python -m venv venv
    source venv/bin/activate
  3. Install dependencies:
    pip install -r requirements.txt
  4. Create .env file with your credentials:
    API_ID=your_api_id
    API_HASH=your_api_hash
    TOKEN=your_bot_token
    
  5. Run:
    python main.py

Docker

  1. Create .env file with your credentials
  2. Run:
    docker compose up -d

Configuration

config.json stores division members:

{
  "pemro": [123456789, 987654321],
  "data": [],
  "jaringan": [],
  "crevmed": []
}

Project Structure

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

License

This project is licensed under the GPL-2.0 License - see the LICENSE file for details.

About

A telegram bot for managing doscom telegram group

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages