Skip to content

dreaite/teleGroupBackup

Repository files navigation

Telegram Group Backup 🤖

(Previously myBotPlate)

A powerful Telegram group message backup tool developed with Python and Telethon.

🇺🇸 English | 🇨🇳 中文

✨ Features

Group Message Backup Tool

  • 📝 Full Message Backup - Real-time forwarding (N to N support).
  • ⚠️ Recall/Edit Tracking - Auto-tag recalled or edited messages.
  • Scheduled Backup - Daily local export & Weekly remote upload.
  • 🌏 Timezone Support - Custom timezone display.
  • 💅 Rich Styling - Optimized layout for text and media.

AI Bot (Optional)

  • 🧩 Plugin Architecture - Supports OpenAI, Grok, etc.

📁 Project Structure

bot/
├── telebot/                         # Core Code
│   ├── group_backup/               # Backup Module ⭐
│   │   ├── core.py
│   │   ├── handlers.py
│   │   └── mapper.py
│   ├── doc/                        # Documentation 📖
│   └── group_backup_bot.py         # Entry Point
├── deploy/                          # Deployment
└── requirements.txt                # Dependencies

🚀 Quick Start

1. Install Dependencies

pip install -r requirements.txt

2. Configuration

cp telebot/group_backup_config.example.yml telebot/group_backup_config.yml
nano telebot/group_backup_config.yml # check config

# systemd
sudo cp deploy/group_backup_bot.service /etc/systemd/system/
sudo nano /etc/systemd/system/group_backup_bot.service # check main process path
sudo systemctl daemon-reload
sudo systemctl enable group_backup_bot # enable auto-start

3. Run

# run directly
python3 telebot/group_backup_bot.py

# systemd
sudo systemctl start group_backup_bot # start service
sudo systemctl status group_backup_bot # check status

📦 Dependencies

  • Telethon - Telegram Client
  • APScheduler - Scheduling
  • pytz - Timezone
  • PyYAML - Config Parsing

📚 Documentation

🐛 Troubleshooting

  • Login Failed: Delete /data/bot/group_backup/*.session and retry.
  • No Messages: Check API ID/Hash and Chat IDs.
  • Logs: tail -f /logs/bot/group_backup/backup.log

GitHub: @dreaife | License: MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages