基于Go的工具,通过Telegram机器人、终端CLI或MCP服务器(针对AI代理)管理Telkomsel账户。
概览
基于Go的工具,用于通过、、或(针对AI代理)管理Telkomsel账户。 - 🔑 带会话缓存的短信OTP登录 - 📊 配置文件、余额、配额检查 - 📦 浏览推荐包 - 🛍️ 购买套餐(Pulsa / QRIS)- ⏰ 自动购买监控(配额用尽或低于自定义MB阈值时自动购买) - 🔄 通过OTP网页钩自动重新登录(会话续订无需人工干预) - 🤖 用于AI代理集成的MCP服务器 如果你不想安装 Go 或自己构建,可以直接从该仓库页面下载预编译的 Windows、Linux 和 macOS 可执行文件。 要全局安装二进制文件,以便你可以从任意文件夹运行 telbot: 1. 从发布页面下载相应的二进制文件。2. 将文件可执行:3. 将其移到你的全局bin目录:4. 你现在可以在终端的任何位置运行telbot。 1. 从发布页面下载 Windows .exe 可执行文件。2. 将下载的文件重命名为 telbot.exe。3.
概述(AI 翻译)
基于Go的工具,通过Telegram Bot、Terminal CLI或MCP Server(针对AI代理)管理Telkomsel账户。
特色
- 🔑 带会话缓存的短信一次性登录
- 📊 档案、平衡、配额核查
- 📦 浏览推荐套餐
- 🛍️ 购买套餐(Pulsa / QRIS)
- ⏰ 自动购买监控(当配额用尽或低于自定义MB阈值时自动购买)
- 🔄 通过OTP网页钩自动重新登录(会话续订无需人工干预)
- 🤖 用于AI代理集成的MCP服务器
快速启动
模式
| 旗帜 | 描述 |
|---|---|
--bot |
Telegram机器人(需要.env配置) |
--cli |
交互式终端界面(Bubbletea) |
--mcp |
人工智能代理MCP服务器(stdio) |
安装(预制双板)
如果你不想安装或自己构建 Go,可以直接从本仓库的 Releases 页面下载预编译的 Windows、Linux 和 macOS 可执行文件。
要全局安装二进制文件,以便你可以从任意文件夹运行telbot:
Linux / macOS:
-
从发布页面下载相应的二进制文件。
-
使文件可执行:
-
将其移到你的全局bin目录:
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Telbot
Go-based tool for managing Telkomsel accounts via Telegram Bot, Terminal CLI, or MCP Server (for AI agents).
Features
- 🔑 SMS OTP login with session caching
- 📊 Profile, balance, quota checking
- 📦 Browse recommended packages
- 🛍️ Purchase packages (Pulsa / QRIS)
- ⏰ Auto-buy monitor (auto-purchase when quota is depleted or below a custom MB threshold)
- 🔄 Auto re-login via OTP webhook (session renewal without manual intervention)
- 🤖 MCP server for AI agent integration
Quick Start
git clone https://github.com/0xtbug/telbot
cd telbot
cp .env.example .env # fill in your tokens
go mod tidy
Modes
| Flag | Description |
|---|---|
--bot |
Telegram bot (requires .env config) |
--cli |
Interactive terminal UI (Bubbletea) |
--mcp |
MCP server for AI agents (stdio) |
go run . --bot # Telegram bot
go run . --cli # Terminal UI
go run . --mcp # MCP server
Installation (Pre-built Binaries)
If you don’t want to install Go or build it yourself, you can download the pre-compiled executables for Windows, Linux, and macOS directly from the Releases page of this repository.
To install the binary globally so you can run telbot from any folder:
Linux / macOS:
- Download the appropriate binary from the Releases page.
- Make the file executable:
chmod +x telbot-linux-amd64 # Replace with your downloaded file name - Move it to your global bin directory:
sudo mv telbot-linux-amd64 /usr/local/bin/telbot - You can now run
telbotfrom anywhere in your terminal.
Windows:
- Download the Windows
.exeexecutable from the Releases page. - Rename the downloaded file to
telbot.exe. - Move it to a permanent folder, for example
C:\telbot\. - Open the Windows Start menu, search for Edit the system environment variables, and open it.
- Click Environment Variables, find Path in the System variables list, and click Edit.
- Click New, add
C:\telbot\, and click OK to save everything. - You can now run
telbotfrom any new PowerShell or Command Prompt window.
Environment Variables
| Variable | Required | Description |
|---|---|---|
TELKOMSEL_BOT_TOKEN |
Bot mode | Telegram bot token from BotFather |
TELEGRAM_ADMIN_ID |
Bot mode | Your Telegram user ID |
OTP_WEBHOOK_PORT |
Optional | Port for OTP webhook listener (e.g. 8081) |
OTP_WEBHOOK_SECRET |
Optional | Shared secret for webhook authentication |
You can either export these directly in your terminal, or place them in a .env file located in your platform’s standard configuration directory:
- Windows:
%APPDATA%\telbot\.env(e.g.,C:\Users\\AppData\Roaming\telbot\.env) - Linux/macOS:
~/.config/telbot/.env
🤖 AI Agent Integration (OpenClaw)
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add 0xtbug/telbot