yosephalganeh-cloud/tg-bot
GitHub: yosephalganeh-cloud/tg-bot
一款基于 Python 的 Telegram 消息批量发送 CLI 工具,通过多线程和多 Bot Token 轮换实现高速消息投递。
Stars: 0 | Forks: 0
# tg-bot 🚀
一款高速、多线程的 Telegram 消息发送 CLI 工具,专为使用多个 Telegram Bot Token 进行快速批量发送而构建。
由 **[yoseph alganeh](https://github.com/yosephalganeh-cloud)** 开发
## 🌟 功能
- **⚡ 多线程执行:** 以最高速度并行发送大量消息。
- **🔄 自动 Token 轮换:** 无缝循环使用已注册的 Telegram bot token。
- **💾 持久化 Token 存储:** 自动将添加的 bot token 保存到 `bot.txt` 中,确保您不会丢失它们。
- **🎨 精美的 CLI 界面:** 简洁、多彩且直观的终端 UI,带有流畅的执行日志记录。
- **🛡️ 错误处理:** 优雅地处理用户中断(`Ctrl+C`)和网络超时,不会产生 traceback 错误。
## 📦 环境要求
- **Python 3.x**
- **零第三方依赖:** 纯粹使用 Python 标准库(`urllib`、`concurrent.futures`、`json`、`os`、`sys`)构建。
## 🚀 安装与使用
### 1. 克隆仓库
```
git clone https://github.com/yosephalganeh-cloud/tg-bot.git
cd tg-bot
```
### 2. 运行工具
```
python tg-bot.py
```
## 🛠️ 使用说明
1. **选项 1:添加 Bot**
- 选择您希望添加的 Telegram bot 数量。
- 粘贴从 [@BotFather](https://t.me/BotFather) 获取的 Bot Token。
- Token 将自动保存到 `bot.txt` 中。
2. **选项 2:启动 Bot**
- 输入目标的 **Chat ID** 或 **用户名**(例如 `@username` 或 `123456789`)。
- 输入您的文本消息。
- 指定您想要发送的次数。
- 坐下来,见证多线程的极速派送!
## 📁 文件结构
```
tg-bot/
├── tg-bot.py # Main Python CLI script
├── bot.txt # Auto-saved list of Telegram Bot Tokens
├── LICENSE # Project License
└── README.md # Documentation
```
## ⚠️ 免责声明
本工具仅严格出于教育、测试和授权的消息批量发送目的而创建。请负责任地使用,并遵守 Telegram 的服务条款。
### 👨💻 开发者
由 **yoseph alganeh** 充满 ❤️ 地创建。
标签:Python, Telegram, 文档结构分析, 无后门, 机器人, 消息群发, 网络调试, 自动化, 逆向工具