# boolean_smtp_telegram_notification_text

> Filters the Telegram message text (HTML-formatted) before it is sent.

Filter · Tier A · Since 1.0.0



## Signature

```php
add_filter( 'boolean_smtp_telegram_notification_text', $callback, 10, 4 );
```

## Parameters

| Name | 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](https://github.com/booleanpress/boolean-smtp-src/blob/main/app/Services/Notification/Channels/TelegramChannel.php#L98) — `BooleanSmtp\Services\Notification\Channels\TelegramChannel::send()`

## Example

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