How do I set up Telegram notifications for customers?

Setting up Telegram notifications allows you to receive real-time updates about your loyalty program and send automated messages to customers.

What You Can Do with Telegram Integration:

Setting Up Telegram Integration:

Step 1: Create Telegram Bot

  1. Open Telegram and search for @BotFather
  2. Send command: /newbot
  3. Follow prompts to name your bot
  4. Copy the API token provided (looks like: 123456789:ABCdefGHIjklMNOpqrsTUVwxyz)

Step 2: Connect Bot to WupSales

  1. In WordPress, go to AI Copilot → Workflow → Integrations
  2. Click “Add Integration” → Select “Telegram”
  3. Enter:
    • Integration Name: (e.g., “Customer Notifications Bot”)
    • Bot Token: Paste API token from BotFather
    • Default Chat ID: (optional, for admin notifications)
  4. Click “Test Connection”
  5. Save integration

Step 3: Get Chat IDs

To send messages to specific users or groups:

  1. Start conversation with your bot in Telegram
  2. Send any message to the bot
  3. Use workflow action “Get Telegram Updates” or visit:
    https://api.telegram.org/bot[YOUR_TOKEN]/getUpdates
  4. Find “chat”:{“id”: in response (e.g., 123456789)
  5. Store chat IDs in user meta or database

Creating Telegram Workflows:

Example 1: Points Earned Notification

Trigger: Points Added
Condition: Points amount > 100
Action: Send Telegram Message
  - Account: Customer Notifications Bot
  - Chat ID: {{customer_telegram_id}}
  - Message: "🎉 You earned {{points_amount}} points! Current balance: {{points_balance}}"

Example 2: Admin Alert for Big Redemption

Trigger: Reward Redeemed
Condition: Reward value > $50
Action: Send Telegram Message
  - Account: Admin Alerts Bot
  - Chat ID: [Your Admin Chat ID]
  - Message: "💎 {{customer_name}} redeemed {{reward_name}} ({{reward_value}})"

Example 3: Tier Upgrade Celebration

Trigger: Customer Tier Changed
Action: Send Telegram Message
  - Message: "🏆 Congratulations {{customer_name}}! You've reached {{new_tier}} status! New benefits: {{tier_benefits}}"
  - Parse Mode: HTML

Message Formatting:

Telegram supports HTML and Markdown:

<b>Bold text</b>
<i>Italic text</i>
<a href="https://example.com">Link</a>
<code>Code</code>

Advanced Features:

Best Practices:

Pro Tip: Create a workflow that asks customers for their Telegram username at checkout and automatically stores their chat ID for future notifications!