Lesson 24medium15 min

Adding Telegram Bot Notifications for Urgent Alerts

Create a Telegram Bot to deliver instant mobile alerts and agenda summaries directly to your phone.

Learning Objectives

  • Create a new Telegram bot via @BotFather and retrieve the bot token
  • Retrieve your personal Telegram Chat ID via @userinfobot
  • Send formatted Markdown alerts to your mobile device

Adding Telegram Bot Notifications for Urgent Alerts

While email holds the full executive report, Telegram delivers instant notifications and urgent flags directly to your mobile lock screen.

Step 1: Create Telegram Bot

  1. Open Telegram and search for @BotFather.
  2. Send /newbot and follow the prompts to name your bot.
  3. Save the provided Bot Token (e.g. 7123456789:AAF...).
Advertisement

Step 2: Get Your Chat ID

  1. Search for @userinfobot on Telegram and click Start.
  2. It responds with your numeric Id (e.g. 987654321).
  3. Send a greeting message (e.g. "hello") to your newly created bot to open the conversation.

Step 3: Add Telegram Node in n8n

  1. Add a Telegram node in parallel with the Gmail node.
  2. Resource: Message
  3. Operation: Send Text Message
  4. Chat ID: 987654321
  5. Text:
    ☀️ *Morning Executive Alert*
    📅 Today is {{ $now.toFormat('cccc, MMM dd') }}
    
    Full report dispatched to Gmail.
    
  6. Parse Mode: Markdown