Telegram
SAS Radius can run a Telegram bot for your subscribers. Subscribers log in to the bot with their username and password, see their account and traffic, and receive activation and expiration messages.
Setup
- In Telegram, talk to @BotFather, create a bot and copy its token.
- Fill in the settings below and click Save.
| Field | Description |
|---|---|
| Enable Telegram Bot | Turns on Telegram notifications. |
| Bot Token | The token from BotFather. |
| SAS4 public domain/IP | The public address of your server. Telegram sends messages to https://<this address>/..., so the server must be reachable from the internet over HTTPS with a valid certificate (a domain name is recommended). |
| Bot Welcome Message | Reply to /start. Don't leave it empty. |
| Send Message On Activation / Activation Message | Message after each activation or extension. |
| Send Expiration Warning / Expiration Message | Warn 1, 2 or 3 days before expiration (or Never). |
Messages can use {username}, {firstname}, {lastname}, {exp} (expiration) and {srv} (profile).
How subscribers use the bot
- Open your bot in Telegram and send /start.
- Tap Login and enter the internet username and password.
- Use Account (account details and expiration) and Traffic (today's and this month's usage, remaining quota). Logout ends the session.
Linked subscribers also receive Telegram announcements (Tools → Announcements) and usage notifications.
Required permission: Settings - System Settings
