How to Set Up Discord and Telegram Notifications
Route domain alerts to Discord channels or a Telegram bot. This guide covers webhook setup for Discord and bot token setup for Telegram.
How to Set Up Discord and Telegram Notifications
ElasticDomain supports seven notification channels: EMAIL, SMS, PUSH, SLACK, DISCORD, TELEGRAM, and WEBHOOK. This guide covers Discord and Telegram.
Discord Notifications
Setting Up Discord
Step 1: Create the webhook in Discord
- Open your Discord server and navigate to the channel you want alerts in.
- Click the gear icon (Edit Channel) → Integrations → Webhooks.
- Click New Webhook, give it a name like "ElasticDomain", and optionally upload a logo.
- Click Copy Webhook URL.
Step 2: Add to ElasticDomain
- Go to Settings → Notifications → Add Channel → Discord.
- Paste the webhook URL.
- Click Test — confirm the test message appears in Discord.
- Click Save.
Step 3: Assign to alert rules
Open any alert rule under Alerts → Rules, enable Discord under Notification Channels, and save.
Discord Alert Format
ElasticDomain sends Discord embeds — rich formatted cards with:
- Domain name with a clickable link
- Alert type and severity (color-coded: green/yellow/red)
- Description of what changed or what is at risk
- UTC timestamp
Telegram Notifications
Setting Up Telegram
Step 1: Create a Telegram Bot
- Open Telegram and search for @BotFather.
- Send /newbot and follow the prompts.
- BotFather gives you a bot token like 123456789:ABCdef... — copy it.
Step 2: Get Your Chat ID
- Add your new bot to the group or channel where you want alerts.
- Send a test message in that chat.
- Visit https://api.telegram.org/bot{YOUR_TOKEN}/getUpdates in a browser.
- Find the "chat":{"id":...} value — that is your Chat ID (may be negative for groups).
Step 3: Add to ElasticDomain
- Go to Settings → Notifications → Add Channel → Telegram.
- Enter your bot token and chat ID.
- Click Test — a test message should appear in your Telegram chat.
- Save.
Step 4: Assign to alert rules
Open a rule under Alerts → Rules and enable Telegram.
Telegram Alert Format
Telegram alerts are formatted HTML messages with domain name, alert type, severity, and a direct link back to ElasticDomain.
Tips
- Test before relying on it. Always use the Test button after setup.
- Private chats vs groups: For Telegram, you can send to a private chat, a group, or a channel. For channels, ensure your bot is an admin with post permissions.
- Use both Discord and Telegram simultaneously on the same rule if different team members use different platforms.