Skip to main content
Version: 1.2

Notification methods

Route: /notifications-methods

A method defines how messages are sent (SMTP server, Telegram bot token, etc.). Rules only reference an existing method; they do not duplicate channel credentials.

See also: Overview · Notification rules

Types available in the UI​

TypeUI statusNotes
EmailEnabledSMTP + test send
TelegramEnabledBot token + default chat ID + test
WhatsAppDisabled (coming soon)—
REST APIDisabled (coming soon)—
Custom (via script)Disabled (coming soon)—

Create a method​

  1. Open Management → Notification methods.
  2. Click Create notification method.
  3. Fill in Name, Type, and Status (enabled/disabled toggle).
  4. Complete type-specific configuration (see below).
  5. Optional: Test notification.
  6. Save.

Table actions: edit, bulk enable/disable, view Configuration (raw JSON with masked passwords), delete (requires admin permission on methods).

Notification methods list — Create notification method

Email​

The Email method delivers alerts to users’ inboxes. Subject and body can be customized further in notification rules using templates.

Configuration fields​

FieldDescription
SMTP HostOutbound mail server
SMTP PortPort (e.g. 587)
Enable SSLSSL encryption
Use Start TLSSTARTTLS
Username / PasswordSMTP credentials
StatusWhether the method is enabled

Setup steps​

  1. Click Create notification method.
  2. Set a name and select Email.
  3. Fill SMTP settings.
  4. Optional: enter a test email and click Test notification.
  5. Save.

Use Test notification to verify delivery before you rely on this method in production.

Create notification method — Email type

Telegram​

The Telegram method sends alerts via a bot. Suitable for team channels and on-call chat.

Configuration fields​

FieldDescription
Bot TokenToken from @BotFather
Default chat IDDefault user or channel chat ID

Setup steps​

  1. Create a bot with @BotFather on Telegram.
  2. Copy the bot token into the form.
  3. Start a chat with the bot and send a message to obtain the chat ID.
  4. Optional: Test notification.
  5. Save.

Create notification method — Telegram type

Message configuration (Telegram)​

On the method or on a rule, enable Message Configuration to override the default test message:

OptionDescription
Message FormatHTML or Markdown (default: HTML)
Use TemplatePick a template
Custom MessageFree-text body with %fieldName% placeholders

When HTML is selected, use Telegram HTML markup — not arbitrary HTML.

Telegram rule — HTML custom message

Telegram HTML markup​

Telegram HTML format uses a custom markup subset, not full HTML. ToBeAlert passes the message to Telegram with parse mode HTML; unsupported tags may be stripped or cause delivery errors.

TagEffect
<b>, <strong>Bold
<i>, <em>Italic
<u>, <ins>Underline
<s>, <strike>, <del>Strikethrough
<tg-spoiler>, <span class="tg-spoiler">Spoiler
<a href="URL">text</a>Link
<code>Inline code
<pre>Code block
<pre><code class="language-python">Syntax-highlighted block
Templates and Telegram

Notification templates support rich HTML for email. The template Preview pane renders standard HTML. When the same template is sent through Telegram with Message Format → HTML, only the tags above are honored. For rich email layout and simple Telegram text, maintain separate templates or use Custom Message with Telegram-safe markup.

Example custom message (HTML format):

<b>Alert:</b> %resource% — %event%
<i>Severity:</i> %severity%
<a href="%href%">Open in ToBeAlert</a>

For Markdown format, use Telegram Markdown instead (for example *bold*, _italic_, [link](url)).

WhatsApp, REST API, and Custom​

These types appear in the Type dropdown but are not selectable yet. Use Email or Telegram for production setups today.

Best practices​

  1. Choose channels by urgency — instant messaging for critical alerts; email for less time-sensitive traffic.
  2. Avoid overload — limit who receives notifications to reduce alert fatigue.
  3. Test during setup and after credential changes.
  4. Use fallback methods where possible (e.g. email + Telegram).
  5. Reuse one method per environment instead of duplicating SMTP settings on every rule.