Skip to content

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

ParameterTypeDescription
$textstringTelegram message text, formatted for Telegram's HTML parse mode.
$messagestringHuman-readable alert message.
$contextarray<string, mixed>Additional context passed to the channel.
$settingsarray<string, mixed>Channel settings the message was built from.

Returns string — The filtered text.

Fires in

Example

boolean_smtp_telegram_notification_text.php
add_filter( 'boolean_smtp_telegram_notification_text', function ( string $text, string $message, array $context, array $settings ) {
return $text;
}, 10, 4 );

Next steps