Skip to main content

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.

settings telegram

Setup

    In Telegram, talk to @BotFather, create a bot and copy its token. Fill in the settings below and click Save.
    FieldDescription Enable Telegram BotTurns on Telegram notifications. Bot TokenThe token from BotFather. SAS4 public domain/IPThe 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 MessageReply to /start. Don't leave it empty. Send Message On Activation / Activation MessageMessage after each activation or extension. Send Expiration Warning / Expiration MessageWarn 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