feat(telegram): show user id in pairing

This commit is contained in:
Peter Steinberger
2026-01-09 00:01:23 +01:00
parent 829782c42c
commit 490bbd10fc
5 changed files with 74 additions and 1 deletions

View File

@@ -390,8 +390,10 @@ export function createTelegramBot(opts: TelegramBotOptions) {
first_name?: string;
last_name?: string;
username?: string;
id?: number;
}
| undefined;
const telegramUserId = from?.id ? String(from.id) : candidate;
const { code, created } = await upsertTelegramPairingRequest({
chatId: candidate,
username: from?.username,
@@ -413,6 +415,8 @@ export function createTelegramBot(opts: TelegramBotOptions) {
[
"Clawdbot: access not configured.",
"",
`Your Telegram user id: ${telegramUserId}`,
"",
`Pairing code: ${code}`,
"",
"Ask the bot owner to approve with:",