fix(broker): plain text for email verification prompt (markdown parse error)
Some checks failed
CI / Lint (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled

Masked email with asterisks broke Telegram Markdown bold syntax.
Use plain text for the code prompt message.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-04-09 17:15:10 +01:00
parent 2710f354a9
commit 64266a75f7

View File

@@ -713,10 +713,7 @@ async function startEmailVerification(
conversationState.set(chatId, "awaiting_code"); conversationState.set(chatId, "awaiting_code");
const masked = email.replace(/(.{2})(.*)(@.*)/, "$1***$3"); const masked = email.replace(/(.{2})(.*)(@.*)/, "$1***$3");
await ctx.reply( await ctx.reply(`📬 Verification code sent to ${masked}\n\nEnter the 6-digit code:`);
`📬 Verification code sent to *${escapeMarkdown(masked)}*\n\nEnter the 6-digit code:`,
{ parse_mode: "Markdown" },
);
} }
/** Result from looking up a user's meshes by email */ /** Result from looking up a user's meshes by email */