boolean_smtp_telegram_notification_text
Filters the Telegram message text (HTML-formatted) before it is sent.
filter Tier A Since 1.0.0
Signature
add_filter( 'boolean_smtp_telegram_notification_text', $callback, 10, 4 );Parameters
| Parameter | Type | Description |
|---|---|---|
$text | string | Telegram message text, formatted for Telegram's HTML parse mode. |
$message | string | Human-readable alert message. |
$context | array<string, mixed> | Additional context passed to the channel. |
$settings | array<string, mixed> | Channel settings the message was built from. |
Returns string — The filtered text.
Fires in
app/Services/Notification/Channels/TelegramChannel.php:98—BooleanSmtp\Services\Notification\Channels\TelegramChannel::send()
Example
add_filter( 'boolean_smtp_telegram_notification_text', function ( string $text, string $message, array $context, array $settings ) { return $text;}, 10, 4 );Next steps
- Notifications — every hook in this area, in firing order where that applies.
- Hook Explorer — filter and search every hook.