From 141d6d2a88f093fb4fb80fc15f104965d5f4eeba Mon Sep 17 00:00:00 2001 From: araharah-executor Date: Sun, 25 Oct 2026 05:29:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(07-06):=20root-cause=20the=20/cari=20menu?= =?UTF-8?q?=20defect=20=E2=80=94=20register-commands.mjs=20sent=20the=20wr?= =?UTF-8?q?ong=20Bot=20API=20field=20name?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - the Bot API parameter is 'scope' (verified against core.telegram.org/bots/api/methods/setmycommands); the script's 'bot_command_scope' was an unknown field Telegram silently ignores, so every call hit the default scope and the two clear calls wiped the default set entirely — the ok:true lines proved nothing about scope - registration re-run: default (agnostic/en/ms) + all_private_chats (agnostic/ms) read back help, privacy, cari via getMyCommands with the correct 'scope' param; group scopes verified cleared - docs/KNOWN-LIMITATIONS.md: the 'Telegram-side defect' attribution corrected to the actual script bug; residual client menu-caching caveat + type-the-command workaround kept - bot/README.md command row updated to the real scope set --- bot/README.md | 2 +- bot/scripts/register-commands.mjs | 22 +++++++++++++++------- docs/KNOWN-LIMITATIONS.md | 21 ++++++++++++--------- 3 files changed, 28 insertions(+), 17 deletions(-) diff --git a/bot/README.md b/bot/README.md index 2193860..90ec3df 100644 --- a/bot/README.md +++ b/bot/README.md @@ -162,7 +162,7 @@ Run from the repo root (`npm run bot: