MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / handleCollapse

Function handleCollapse

outdated/gemini/gemini.ts:1505–1517  ·  view source on GitHub ↗
(msg: Api.Message, args: string[])

Source from the content-addressed store, hash-verified

1503}
1504
1505async function handleCollapse(msg: Api.Message, args: string[]): Promise<void> {
1506 const setting = args[0];
1507
1508 if (setting === "on") {
1509 ConfigManager.set(CONFIG_KEYS.GEMINI_COLLAPSIBLE_QUOTE_ENABLED, "on");
1510 await msg.edit({ text: "✅ 折叠引用已启用", parseMode: "html" });
1511 } else if (setting === "off") {
1512 ConfigManager.set(CONFIG_KEYS.GEMINI_COLLAPSIBLE_QUOTE_ENABLED, "off");
1513 await msg.edit({ text: "✅ 折叠引用已禁用", parseMode: "html" });
1514 } else {
1515 await msg.edit({ text: "❌ 用法: gemini collapse [on|off]" });
1516 }
1517}
1518
1519async function handlePrompt(msg: Api.Message, args: string[]): Promise<void> {
1520 const [subCommand, ...subArgs] = args;

Callers 1

handleGeminiRequestFunction · 0.85

Calls 2

setMethod · 0.45
editMethod · 0.45

Tested by

no test coverage detected