diff options
| author | Noah Zweben MacBook <noahz@anthropic.com> | 2026-03-23 22:50:27 -0700 |
|---|---|---|
| committer | Noah Zweben MacBook <noahz@anthropic.com> | 2026-03-23 22:50:27 -0700 |
| commit | ec682345d103bef0c4f3b95a18f013d3af39240a (patch) | |
| tree | 3c402c20ed8d61aae72b53cf1367b90b37e2caf0 /external_plugins/telegram | |
| parent | fce00fe3c385182e54d31e7d64b13caf8b1b67b5 (diff) | |
revert: restore Allow/Deny button labelstelegram-updates
Diffstat (limited to 'external_plugins/telegram')
| -rw-r--r-- | external_plugins/telegram/server.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/external_plugins/telegram/server.ts b/external_plugins/telegram/server.ts index c1868b67..3211bbae 100644 --- a/external_plugins/telegram/server.ts +++ b/external_plugins/telegram/server.ts @@ -403,8 +403,8 @@ mcp.setNotificationHandler( const text = `🔐 Permission: ${tool_name}` const keyboard = new InlineKeyboard() .text('See more', `perm:more:${request_id}`) - .text('✅ Yes', `perm:allow:${request_id}`) - .text('❌ No', `perm:deny:${request_id}`) + .text('✅ Allow', `perm:allow:${request_id}`) + .text('❌ Deny', `perm:deny:${request_id}`) for (const chat_id of access.allowFrom) { void bot.api.sendMessage(chat_id, text, { reply_markup: keyboard }).catch(e => { process.stderr.write(`permission_request send to ${chat_id} failed: ${e}\n`) @@ -724,8 +724,8 @@ bot.on('callback_query:data', async ctx => { `description: ${description}\n` + `input_preview:\n${prettyInput}` const keyboard = new InlineKeyboard() - .text('✅ Yes', `perm:allow:${request_id}`) - .text('❌ No', `perm:deny:${request_id}`) + .text('✅ Allow', `perm:allow:${request_id}`) + .text('❌ Deny', `perm:deny:${request_id}`) await ctx.editMessageText(expanded, { reply_markup: keyboard }).catch(() => {}) await ctx.answerCallbackQuery().catch(() => {}) return |
