Fix: flushchan signal

This commit is contained in:
Grail Finder
2026-01-10 10:59:27 +03:00
parent 8474b87c43
commit c498ed6424
2 changed files with 5 additions and 6 deletions

6
bot.go
View File

@@ -664,11 +664,15 @@ out:
if scrollToEndEnabled {
tv.ScrollToEnd()
}
// Send chunk to audio stream handler
if cfg.TTS_ENABLED {
// Send chunk to audio stream handler
TTSTextChan <- chunk
}
}
if cfg.TTS_ENABLED {
// msg is done; flush it down
TTSFlushChan <- true
}
break out
}
}