agenti
How to Send Notifications from n8n to Telegram (and receive them on your iPhone)
Want to receive instant push notifications on your iPhone whenever an n8n workflow completes?

Want to receive instant push notifications on your iPhone whenever an n8n workflow completes?
The easiest (and free) way is to integrate Telegram.
Here’s a simple step-by-step guide.
1. Create a Telegram Bot
Open Telegram and search for @BotFather.
Type /newbot.
- Give it a name (e.g., n8n Alerts) and a unique username (e.g., n8n_alerts_[your_unique_identifier]_bot).
BotFather will then reply with a confirmation message that contains:
- A congratulatory note confirming your bot is active.
- 🔗 A direct link to open the bot in Telegram (e.g., https://t.me/your\_bot\_name).
- 🔑 A Bot Token — a long string of numbers and letters that allows access to the Telegram Bot API.
- A security warning reminding you to keep the token safe, because anyone with it can fully control your bot.
- A link to the official Telegram Bot API documentation.
At this point, your bot exists. Open the provided link and press Start in Telegram to begin the chat.
2. Find Your Chat ID
To tell n8n where to send the messages, you need your chat_id.
- From Send any message to your bot (e.g., “hello”).
- Open this URL in your browser:
https://api.telegram.org/bot<YOUR_TOKEN>/getUpdates
(replace <YOUR_TOKEN> with your Bot Token).
3. Look for the message.chat.id field in the JSON output:
"message": { "chat": { "id": 123456789,
→ that number is your chat_id.
3. Configure n8n
Now, let’s set it up in n8n:
- Create a new Credential of type Telegram and paste your Bot Token.
- Build a workflow:
- Manual Trigger node (for testing).
- Telegram node → Send Message.
- Fill in your chat_id and the message text.
3. Connect the nodes and click Execute.
You should immediately see the notification on your iPhone.
4. Using a Private Channel (for extra safety)
If you want to keep the bot strictly private, you can set up a private channel:
- In Telegram, create a new private channel.
- Add your bot as an administrator of that channel.
- Retrieve the channel’s chat_id (it usually starts with -100…, found via getUpdates after sending a message).
- Use that chat_id in n8n instead of your personal one.
This way, only you (and anyone you explicitly add to the channel) will see the notifications. The bot won’t be discoverable by outsiders.
5. Keep Your Bot Private: Best Practices
By default, Telegram bots are “public” in the sense that anyone who knows the username can start them. To keep yours private:
- Do not share the bot’s username publicly.
- Use only your personal chat_id or a private channel chat_id.
- Double-check that the bot is not added to any group/channel you don’t control.
- For sensitive use cases, consider creating a dedicated private channel as described above.
6. Extras: Formatting and Buttons
Telegram supports advanced options:
- Markdown / HTML → for bold, italic, links, code.
- Inline keyboards → add buttons for quick actions.
Example inline button (Reply Markup JSON in n8n):
{ "inline_keyboard": [ [{ "text": "Open Dashboard", "url": "https://status.myapp.com" }] ]}
7. Conclusion
With just a few steps, you’ve turned n8n into a push notification system that’s:
- Reliable
- Free
- Secure (if you keep your bot private)
You can now get real-time alerts for:
- Server and system events
- Backup completion
- Job results
- Or any workflow you automate in n8n
As an alternative to Telegram, there are also solutions like ntfy.sh and Gotify.
Both are open-source, remain free to use, and allow you to run a lightweight service on your own server that receives and distributes messages.
Each comes with official apps for Android and iOS, making them excellent options if you prefer a fully self-hosted notification system.
Compared to Telegram, setting up ntfy or Gotify on your own server requires a bit more attention and configuration. This extra step, however, may be worth it if you want complete independence and full control over your notification pipeline.
That said, if the messages you send from n8n are simple execution status updates without sensitive technical details, then Telegram is often more than enough — easy to set up, secure, and convenient.