Skip to main content

Telegram

Send messages through a Telegram bot.

Setup

  1. Open @BotFather in Telegram
  2. Send /newbot and follow the prompts
  3. Copy the HTTP API token (looks like 123456:ABC-DEF...)
  4. In the Notifo dashboard → ChannelsConnect Telegram → paste the token

Sending messages

Use channel = telegram in the notify endpoints:

curl -X POST https://api.notifo.cloud/v1/notify/telegram/text \
-H "X-Api-Key: notifo_live_abc123" \
-H "Content-Type: application/json" \
-d '{"to": "123456789", "text": "Hello from Telegram!"}'

The to field is the Telegram chat ID (numeric). Users must start a conversation with your bot before you can message them.

Getting a user's chat ID

When a user messages your bot, Notifo captures their chat ID via the inbound webhook. You can also forward messages from @userinfobot to get a chat ID manually.