fix: use backticks for masked email in OTP message

Asterisks in the masked email (liza*****@domain) broke Telegram Markdown
parsing, causing the message to silently fail. Backticks (inline code)
render correctly regardless of the email content.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro
2026-07-15 04:04:58 +00:00
co-authored by Claude Sonnet 4.6
parent 77c3353213
commit 612cdaa81e
+2 -2
View File
@@ -405,10 +405,10 @@ class TelegramBotService
$masked = $this->maskEmail($user->email);
if ($mailEnviado) {
$this->send($chatId, "✉️ Te enviamos un código a *{$masked}*.\n\nEscribe el código de 6 dígitos:");
$this->send($chatId, "✉️ Te enviamos un código a `{$masked}`\n\nEscribe el código de 6 dígitos:");
} else {
$this->send($chatId,
"✉️ Código generado para *{$masked}*.\n\n" .
"✉️ Código generado para `{$masked}`\n\n" .
"⚠️ Hubo un problema enviando el correo. Revisa tu bandeja o escribe /cancelar para intentar de nuevo.\n\n" .
"Si lo recibiste, escribe el código de 6 dígitos:"
);