fix: use telegram user id for pairing request

This commit is contained in:
Ayaan Zaidi
2026-02-01 15:08:20 +05:30
committed by Ayaan Zaidi
parent 24fbafa9a7
commit 633f848481

View File

@@ -254,7 +254,7 @@ export const buildTelegramMessageContext = async ({
const telegramUserId = from?.id ? String(from.id) : candidate;
const { code, created } = await upsertChannelPairingRequest({
channel: "telegram",
id: String(candidate),
id: telegramUserId,
meta: {
username: from?.username,
firstName: from?.first_name,