trait TelegramNotification

Trait for sending Telegram notifications.

Methods

void
telegramAlert(AlertRecipient|object $recipient, string $type, string $message, array<string,mixed> $details = [], string|null $subject = null)

Send an alert notification via Telegram.

Details

at line 25
void telegramAlert(AlertRecipient|object $recipient, string $type, string $message, array<string,mixed> $details = [], string|null $subject = null)

Send an alert notification via Telegram.

Parameters

AlertRecipient|object $recipient

The recipient object containing address (chat ID) and bot config

string $type

The alert type

string $message

The alert message

array<string,mixed> $details

Additional details to format in the message

string|null $subject

Optional subject to bold at the top

Return Value

void