refactor(telegram): extract native command menu helpers

This commit is contained in:
Peter Steinberger
2026-02-14 02:02:44 +01:00
parent 2e84ae7019
commit cc2249a431
4 changed files with 207 additions and 68 deletions

View File

@@ -112,7 +112,7 @@ describe("registerTelegramNativeCommands", () => {
expect(registeredCommands).toHaveLength(100);
expect(registeredCommands).toEqual(customCommands.slice(0, 100));
expect(runtimeLog).toHaveBeenCalledWith(
"Telegram limits bots to 100 commands. 120 configured; registering first 100. Use channels.telegram.commands.native: false to disable, or reduce skill/custom commands.",
"Telegram limits bots to 100 commands. 120 configured; registering first 100. Use channels.telegram.commands.native: false to disable, or reduce plugin/skill/custom commands.",
);
});
});