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

Function handleAudio

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

Source from the content-addressed store, hash-verified

1329}
1330
1331async function handleAudio(msg: Api.Message, args: string[]): Promise<void> {
1332 const replyMsg = await msg.getReplyMessage();
1333 const { userQuestion, displayQuestion, apiQuestion } = extractQuestionFromArgs(args, replyMsg);
1334
1335 if (!apiQuestion) {
1336 await msg.edit({ text: "❌ 请提供问题或回复一条有文字内容的消息" });
1337 return;
1338 }
1339
1340 await handleQuestionWithAudio(msg, apiQuestion, displayQuestion, false, 'Audio', replyMsg);
1341}
1342
1343async function handleSearchAudio(msg: Api.Message, args: string[]): Promise<void> {
1344 const replyMsg = await msg.getReplyMessage();

Callers 1

handleGeminiRequestFunction · 0.85

Calls 3

extractQuestionFromArgsFunction · 0.85
handleQuestionWithAudioFunction · 0.85
editMethod · 0.45

Tested by

no test coverage detected