Telegram Initial Messaging Setup
Telegram Messaging and Alerts Configuration Guide in AdminOLT
AdminOLT lets you receive alert notifications via Telegram.
Note
Manual Contents
Table of Contents
Step 1: Create the bot in Telegram with @BotFather
1 Open Telegram (mobile, desktop, or web app) and search for the official @BotFather account (make sure it has the blue verified badge).

2 Start the chat by pressing "Start" and send the command:
/newbot

3 @BotFather will ask you for a display name for your bot (example: My ISP Alerts). Type it and send it.

4 Next, it will ask for a username (username), which must be unique and end with bot (example: my_isp_alerts_bot).
5 Once finished, @BotFather will provide the Access Token (HTTP API) in a format similar to:
123456789:AAFs8xK9pLmNoPqRsTuVwXyZ1234567890

Keep this token in a safe place (do not share it publicly).
Step 2: Enable the chat or group with your bot
Before sending alerts, the bot needs permission to write to the destination:
- If you will send alerts to an individual chat: search for your new bot by its
@username, open it, and press "Start" (or send/start). If you have never messaged the bot, Telegram will block messages.


- If you will send alerts to a group: open the group in Telegram → "Group Info" → "Add Members" → search for your bot by
@usernameand add it. Make sure it has permission to send messages.


Step 3: Get the chat_id (individual chat or group)
There are three ways to obtain it. You can use whichever is most convenient for you:
Option A — From the Telegram Web URL (the fastest)
1 Go to web.telegram.org and sign in.
2 Click on the chat or group where you want to receive alerts.
3 Check your browser's address bar, right after the # symbol:
- Standard group: it will look like
https://web.telegram.org/k/#-4123456789→ thechat_idis-4123456789(include the-sign). - Supergroup: it will look like
https://web.telegram.org/a/#-1001987654321→ thechat_idis-1001987654321. - Individual chat: if you open your own chat or a contact's chat, a positive number appears (e.g.,
222358300).


Important
100 prefix may not appear the same way as in the API. If testing returns a chat not found error, use Option B to get the exact ID expected by the Telegram API.Option B — From the official getUpdates API (most reliable for chats and groups)
1 Send any message to your bot (in a private chat or inside the group where you already added it, for example hello).
2 Open the following URL in your browser, replacing <YOUR_TOKEN> with the token provided by @BotFather:
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates
3 In the JSON response, look for the "chat" block and copy the exact value of "id":
- Individual chat example:
"chat": {"id": 222358300, "type": "private", ...}→ ID:222358300 - Group / supergroup example:
"chat": {"id": -1001987654321, "type": "supergroup", ...}→ ID:-1001987654321
Tip
getUpdates returns an empty "result": [] in a group, mention the bot by sending /start@your_bot_username inside the group and reload the URL.Option C — Using a helper ID lookup bot
- For your personal chat: search for
@userinfobot, press "Start", and it will reply directly with yourId. - For a group: temporarily add
@getidsbotor@RawDataBotto the group, copy the number shown inchat.id(including its-sign), and then you can remove it from the group.
Step 4: Register and test the bot in AdminOLT
1 In the left sidebar menu of AdminOLT, go to System → Messaging - Telegram.
2 Click the + Add Key button.

3 Fill in the form fields:
- Name: descriptive name to identify your configuration (e.g.,
Main OLT Alerts). - Access Token: paste the full token provided by
@BotFather(e.g.,123456789:AAF...). - Chat ID: paste the
chat_idobtained in Step 3. If you want to send alerts to multiple chats or groups at once, separate them with commas (e.g.,-1001987654321, 222358300). - Active: select "Yes" to enable automatic alert delivery (or "No" if you only want to save and test it first).
4 Click "Save".

5 Back in the registered keys table, click the blue button with the paper airplane icon (Send a test message).
6 Verify that AdminOLT shows the confirmation message and that Test message arrives in your Telegram chat/group. (Testing works even if the Active switch is set to No).



Nov. 26, 2026, 12:22 p.m. - Visitas: 225
