ChatHub/docs

Search documentation

SUGGESTED FOR YOU200 results

Search published articles · By section

Configure Telegram notifications

Set up a Telegram bot to alert administrators about messages, conversations, assignments, and channel issues; choose recipients, customize templates, and test delivery.

1. Open notification settings#

Telegram notifications alert administrators on their phones while away from ChatHub. This notification bot is configured independently of Telegram channels used to chat with customers in the Inbox. You do not need to add it to the Channels list.

  1. 1

    Sign in to ChatHub with permission to view and manage system settings.

  2. 2

    Open Administration → Settings → Telegram notifications in the left column. The direct path is /settings?tab=notifications on your ChatHub domain.

  3. 3

    Prepare a dedicated Telegram bot, its token, and the Chat IDs of the people or administrator groups that will receive alerts.

Figure 1. Vietnamese interface: Cài đặt (Settings) is at the bottom of the Quản trị (Administration) menu. Thông báo Telegram is between Email and Nhà cung cấp AI in the left column. Chưa cấu hình means no bot token has been saved.
Alerts may include customer names and message content. Select only chats whose members are allowed to read that data. All Chat IDs shown in screenshots are unsaved examples; replace them with your own recipient IDs.

2. Prepare the notification bot#

  1. 1

    Open the BotFather link below, check its username and verification badge, and use START BOT to open Telegram.

  2. 2

    Send /newbot to BotFather in Telegram, then follow its instructions to choose a name and username.

  3. 3

    Copy the token issued by BotFather for ChatHub. A personal Telegram API ID/API Hash or account password is not a bot token.

  4. 4

    Open your new bot and press Start or send /start. For a group recipient, add this bot to the administrator group and make sure it can send messages.

Open BotFather on Telegram ↗

Figure 2. English Telegram page: check @BotFather and the verification badge; START BOT at the bottom opens it in Telegram. This is the bot landing page, before /newbot; no token is shown.

Telegram: create a bot with BotFather ↗

Keep the token secret: anyone who has it can control the bot. Enter it only in ChatHub’s Bot token field, never in screenshots, GitHub, or support messages. If exposed, revoke and replace it through BotFather, then update ChatHub.

3. Identify recipient Chat IDs#

  1. 1

    For personal delivery, open @userinfobot as suggested in ChatHub, press Start in Telegram, and read your account ID from its reply. It is a third-party bot; do not send it bot tokens or customer content.

  2. 2

    Use that ID as the recipient and also send /start to your new notification bot. Opening userinfobot alone does not let your notification bot message you.

  3. 3

    For a group, obtain the group’s Chat ID from its administrator. Group IDs begin with a minus sign. Do not substitute your personal ID or the group’s display name.

  4. 4

    If an administrator needs to look up a group ID with the Bot API, add the bot to the group, send a command addressed to it there, and read message.chat.id from getUpdates using a trusted internal API tool. Do not paste the token into third-party ID lookup websites. getUpdates cannot be used while a webhook is active.

  5. 5

    Separate multiple recipient IDs with commas, for example 123456789, -100123456789. Preserve the minus sign for group IDs.

Open userinfobot to find your personal ID ↗

Figure 3. English Telegram page: verify @userinfobot below the bot’s name, then use START BOT to open Telegram. This screenshot does not show an ID reply; use your own ID, not the example numbers in this guide.

Telegram Bot API: read bot updates with getUpdates ↗

4. Set the token, shared recipients, and master switch#

  1. 1

    Bot token: paste the complete token from BotFather. When a token is already saved, leave Bot token (saved) empty to retain it; enter a value only to replace the bot or update its token.

  2. 2

    Shared recipient Chat IDs: enter at least one destination. Events without their own Chat IDs use these recipients, and test messages go here too.

  3. 3

    Turn on Enable Telegram notifications to receive automatic alerts. Enabling and saving requires both a bot token and shared recipient Chat IDs, even if all events have separate destinations.

  4. 4

    To check delivery first, leave the master switch off, save the token and shared recipients, and send a test. Then enable the switch and Save to start automatic alerts.

Figure 4. Vietnamese interface: Token bot on the left is empty and shows only a placeholder. Chat ID nhận chung on the right contains two example IDs separated by a comma. The master switch below is on only in this unsaved draft; no real token was entered and automatic sending was not activated.

The server encrypts the token and never displays it again. Configured only means a token was saved, not that delivery works. To pause automatic alerts, turn off Enable Telegram notifications and Save; the configuration is retained.

5. Choose events, separate recipients, and templates#

Each notification type has its own switch. Enabling it reveals its Chat ID override and Message content fields. Disabling it hides those fields and stops that event’s alerts after saving; the master switch still controls all automatic delivery.

New message: a customer sends a message to a channel. Supported variables: {contact} for the customer’s name, {channel} for the channel name, and {preview} for up to 200 characters of message text. File/image-only messages may have no text preview.

New conversation: a customer starts their first conversation or reopens a closed one. Supported variables: {contact}, {channel}.

Conversation assigned: a conversation is assigned to a staff member or team. Supported variables: {contact}, {assignee}, where {assignee} is the staff or team name. Removing an assignment does not send this alert.

  1. 1

    Enable the events you need. For example, to focus on incoming messages and channel status, disable New conversation or Conversation assigned to reduce alerts.

  2. 2

    Leave an event’s Chat ID override empty to use shared recipients. An override replaces the shared list for that event; it does not add recipients to it. Multiple IDs can be separated by commas.

  3. 3

    Edit the existing Message content template. For New message, for example, write 💬 {contact} sent a message via {channel}, followed by a new line and {preview}.

  4. 4

    Keep variable names and braces exact, and use only the variables listed below that field. Messages use plain text, not HTML/Markdown formatting. Clear the content and save to restore the default template.

Figure 5. Vietnamese interface: Tin nhắn mới is on, with an example group ID on the left and {contact}, {channel}, {preview} on the right. Hội thoại mới is off, so its fields are hidden. Phân công hội thoại below still uses its default text and shared recipients. All edits are unsaved.

Channel disconnected alerts you after repeated disconnections need attention. Channel reconnected reports recovery of a channel previously reported as offline. Both types support only {channel}.

Figure 6. Vietnamese interface: the switches at the top left of each card enable disconnection and recovery alerts. Empty Chat ID riêng fields use shared recipients; templates on the right retain {channel}. You can enter a technical team’s group ID for each event, then Save. This screenshot shows an unsaved draft.
Default templates follow the system language. Custom text is preserved as written and is not translated when the language changes. To avoid sending customer message text to Telegram, remove {preview} from New message and consider removing customer names too.

6. Save and send a test#

  1. 1

    Review the token, every destination, and the switches, then click Save at the bottom. Wait for the confirmation that Telegram notification settings were saved.

  2. 2

    In the test section, click Send test. This sends a real message using the saved token to shared recipient Chat IDs, even when the master switch is off.

  3. 3

    Read the result and check Telegram at every destination. A successful result reports how many chats received the test; it does not use individual event templates.

  4. 4

    If you set separate event recipients, verify those with an appropriate real event after enabling and saving the configuration. A successful test to shared recipients does not verify the separate destinations.

Figure 7. Vietnamese interface: Lưu (Save) is at the bottom; Gửi thử (Send test) is in the card above. Send test is disabled because a complete configuration has not been saved. This screenshot is before submission, not evidence of a successful save or message delivery.
Send test is disabled until a token and at least one shared recipient are saved, or whenever unsaved edits exist. Save after each change before testing again. If a recipient in the list fails, earlier recipients may already have received the test; retrying may send them another message.

7. Troubleshoot and verify#

Cannot open Settings, save, or test: check that your account has permission to manage system settings (settings.manage). This is required to open the Settings page, save configuration, and send tests.

Invalid token or missing configuration: enter the complete BotFather token and shared recipient Chat IDs. A correctly formatted token may still be revoked, so test delivery.

Invalid Chat ID: use numeric IDs, preserve the minus sign for groups, and separate multiple recipients with commas. Do not use phone numbers, display names, or t.me links in this field.

Telegram rejected the request: check token validity, /start with the correct notification bot, and whether the bot is blocked or has left the group. Make sure it can send there. Read the error details below the test result to identify the destination to fix.

Cannot reach Telegram: check the ChatHub server’s Internet connection, DNS, and firewall access to api.telegram.org, then retry.

Tests work but automatic alerts do not: confirm the master and event switches were enabled and saved, a matching new event occurred, and an event override is not routing messages elsewhere. A missing preview for a file/image-only message can be normal.

Configure Telegram notificationsBack to top
© 2026 ChatHub DocsPowered by CMSNT LTDA guide to using ChatHub.