(msg: Api.Message, args: string[])
| 1503 | } |
| 1504 | |
| 1505 | async 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 | |
| 1519 | async function handlePrompt(msg: Api.Message, args: string[]): Promise<void> { |
| 1520 | const [subCommand, ...subArgs] = args; |
no test coverage detected