- Create a bot via @BotFather and get the token
- Get your Telegram user ID (use @userinfobot)
- Fill
.env:TELKOMSEL_BOT_TOKEN=your_token_here TELEGRAM_ADMIN_ID=your_user_id # Optional: Enable auto re-login via OTP webhook OTP_WEBHOOK_PORT=8081 OTP_WEBHOOK_SECRET=your_secret
telbot --bot
# or with debug logging:
telbot --bot --verbose- Start — Send
/startto the bot - Login — Tap "Login" and send your phone number (e.g.
812xxxxxxxx), then enter the OTP received via SMS - Profile — View balance, active period, tier, and points
- Quota — Check remaining internet, voice, SMS quotas
- Buy Package — Select a package and pay via Pulsa or QRIS
- Auto-Buy — Set interval → pick threshold → pick package → start. The bot monitors quota in the background and auto-purchases when quota runs out or drops below the set MB threshold.
| Command | Description |
|---|---|
/start |
Show main menu |
All other interactions are through inline keyboard buttons.
If an OTP webhook listener is configured (OTP_WEBHOOK_PORT), the bot will automatically re-login when a session expires during auto-buy monitoring. This requires the SMS Forwarder to be set up on an OpenWrt device.
See Auto Re-login docs for full setup guide.