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:
committed by
Peter Steinberger
parent
05a99aa49b
commit
2f036f7173
@@ -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, {
|
||||
|
||||
Reference in New Issue
Block a user