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

Function handleContextClear

outdated/gemini/gemini.ts:1394–1397  ·  view source on GitHub ↗
(msg: Api.Message)

Source from the content-addressed store, hash-verified

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

Callers 1

handleGeminiRequestFunction · 0.85

Calls 2

setMethod · 0.45
editMethod · 0.45

Tested by

no test coverage detected