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:
- Send points balance notifications to customers
- Alert admins about high-value reward redemptions
- Notify customers when they reach new loyalty tiers
- Send birthday bonus announcements
- Broadcast special promotions to customer groups
- Receive admin alerts for workflow errors
Setting Up Telegram Integration:
Step 1: Create Telegram Bot
- Open Telegram and search for @BotFather
- Send command:
/newbot - Follow prompts to name your bot
- Copy the API token provided (looks like:
123456789:ABCdefGHIjklMNOpqrsTUVwxyz)
Step 2: Connect Bot to WupSales
- In WordPress, go to AI Copilot → Workflow → Integrations
- Click “Add Integration” → Select “Telegram”
- Enter:
- Integration Name: (e.g., “Customer Notifications Bot”)
- Bot Token: Paste API token from BotFather
- Default Chat ID: (optional, for admin notifications)
- Click “Test Connection”
- Save integration
Step 3: Get Chat IDs
To send messages to specific users or groups:
- Start conversation with your bot in Telegram
- Send any message to the bot
- Use workflow action “Get Telegram Updates” or visit:
https://api.telegram.org/bot[YOUR_TOKEN]/getUpdates
- Find “chat”:{“id”: in response (e.g., 123456789)
- 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:
- Inline Keyboards: Add interactive buttons to messages
- Photo/Document Sending: Send images or PDFs
- Group Management: Broadcast to customer groups
- Reply Handling: Process customer responses
Best Practices:
- Always request customer permission before sending notifications
- Don’t spam – limit to important events only
- Include opt-out instructions in messages
- Test messages thoroughly before going live
- Use clear, concise messaging
Pro Tip: Create a workflow that asks customers for their Telegram username at checkout and automatically stores their chat ID for future notifications!