Skip to content

Commit

Permalink
Escape underscores in Telegram notifications. Fixes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
austinwbest committed Dec 8, 2024
1 parent 865a363 commit 5e85589
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public function buildTelegramMessage($payload, $test = false)

public function escapeTelegramNotification($message)
{
$chars = ['-', '.', '(', ')', '<', '>', '=', '[', ']'];
$chars = ['-', '.', '(', ')', '<', '>', '=', '[', ']', '_'];
foreach ($chars as $char) {
$message = str_replace($char, '\\' . $char, $message);
}
Expand Down

0 comments on commit 5e85589

Please sign in to comment.