(msg: Api.Message)
| 1392 | } |
| 1393 | |
| 1394 | async function handleContextClear(msg: Api.Message): Promise<void> { |
| 1395 | ConfigManager.set(CONFIG_KEYS.GEMINI_CHAT_HISTORY, "[]"); |
| 1396 | await msg.edit({ text: "✅ 对话历史已清除" }); |
| 1397 | } |
| 1398 | |
| 1399 | async function handleContextShow(msg: Api.Message): Promise<void> { |
| 1400 | const history = JSON.parse(ConfigManager.get(CONFIG_KEYS.GEMINI_CHAT_HISTORY, "[]")); |
no test coverage detected