Update poll.ts

This commit is contained in:
Vaica committed 2026-06-24 17:30:42 +08:00
1 parent af41bcd2bb
commit 984511284c
1 file changed
+2 -14
+2 -14
View File
@@ -390,7 +390,7 @@ async function handleInlineCallback(chatId: number, queryId: string, data: strin
await handleCommand(chatId, cmd, arg);
try { await tg("answerCallbackQuery", { callback_query_id: queryId }); } catch (_e) {}
}
const s = getSession(chatId);
if (!s.dirPath) {
await sendMessage(chatId, "❌ 请先发 /new 或 /edit 开始写作");
@@ -765,16 +765,4 @@ async function handleAudioCoverCallback(chatId: number, data: string) {
} else if (data === "audio_add_cover") {
// 等待用户发送封面图
await tg("sendMessage", {
chat_id: chatId,
text: "🖼️ 请发送封面图片:",
reply_markup: {
force_reply: true,
input_field_placeholder: "发送一张图片作为封面"
}
});
}
} catch (e) {
console.error("[bot:audio-cover-callback]", e instanceof Error ? e.message : String(e));
}
}
await tg("sendMessag