Skip to main content

Telegram

Telegram can deliver notifications to users, groups, or supergroups via bots.

Configuration

Configure a Telegram bot to send notifications to a chat (user, group, or supergroup). Chat IDs can be negative for groups/supergroups; topic IDs are for threads in supergroups.

๐Ÿ”‘Bot Token

Create a bot with @BotFather and paste the generated token. Tokens look like 123456789:ABC-DEF1234ghIkl-zyx57W2v1u123ew11.


Reference: https://core.telegram.org/bots#how-do-i-create-a-bot

๐Ÿ’ฌChat ID

The destination chat. Examples:

  • Direct chat with your bot: positive integer (e.g., 123456789)
  • Group/supergroup: negative integer starting with -100 (e.g., -100123456789)

One way to find the chat id: https://stackoverflow.com/a/75954034

๐ŸงตTopic ID (optional)

For supergroups with topics enabled, specify the thread/topic ID to target a specific thread. Leave empty to post to the main chat.


One way to get the topic id: https://stackoverflow.com/a/75178418

๐Ÿ”•Send Silently

When enabled, Telegram delivers the message without sound.