Telegram
Send messages through a Telegram bot.
Setup
- Open @BotFather in Telegram
- Send
/newbotand follow the prompts - Copy the HTTP API token (looks like
123456:ABC-DEF...) - In the Notifo dashboard → Channels → Connect 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.