diff --git a/src/pairing/pairing-messages.ts b/src/pairing/pairing-messages.ts index 86e3b471a7..bff3384ac4 100644 --- a/src/pairing/pairing-messages.ts +++ b/src/pairing/pairing-messages.ts @@ -15,6 +15,6 @@ export function buildPairingReply(params: { `Pairing code: ${code}`, "", "Ask the bot owner to approve with:", - formatCliCommand(`openclaw pairing approve ${channel} `), + formatCliCommand(`openclaw pairing approve ${channel} ${code}`), ].join("\n"); } diff --git a/src/telegram/bot-message-context.ts b/src/telegram/bot-message-context.ts index 456ae0523d..8f52c6b513 100644 --- a/src/telegram/bot-message-context.ts +++ b/src/telegram/bot-message-context.ts @@ -289,7 +289,7 @@ export const buildTelegramMessageContext = async ({ `Pairing code: ${code}`, "", "Ask the bot owner to approve with:", - formatCliCommand("openclaw pairing approve telegram "), + formatCliCommand(`openclaw pairing approve telegram ${code}`), ].join("\n"), ), });