(msg: Api.Message, args: string[])
| 1329 | } |
| 1330 | |
| 1331 | async 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 | |
| 1343 | async function handleSearchAudio(msg: Api.Message, args: string[]): Promise<void> { |
| 1344 | const replyMsg = await msg.getReplyMessage(); |
no test coverage detected