fix(audio): preserve audioAsVoice propagation

- Keep audioAsVoice-only payloads from being filtered out
- Allow empty payloads through when they carry the flag
- Remove temporary debug logs around audioAsVoice buffering

Co-authored-by: Manuel Hettich <17690367+ManuelHettich@users.noreply.github.com>
This commit is contained in:
JarvisandManuel Hettich authored and Peter Steinberger committed 2026-01-10 01:42:09 +01:00
1 parent 05a99aa49b
commit 2f036f7173
2 files changed
+2 -2

No files matched your search

-1
View File
@@ -1388,7 +1388,6 @@ async function deliverReplies(params: {
});
} else if (kind === "audio") {
const useVoice = reply.audioAsVoice === true; // default false (backward compatible)
log.warn(`[DEBUG] Audio media: audioAsVoice=${reply.audioAsVoice}, useVoice=${useVoice}`);
if (useVoice) {
// Voice message - displays as round playable bubble (opt-in via [[audio_as_voice]])
await bot.api.sendVoice(chatId, file, {