fix(streaming): preserve recovered segments across channels

This commit is contained in:
Xubin Ren committed 2026-07-27 01:39:46 +08:00
1 parent e6baecafcd
commit b55b76d755
12 files changed
+208

No files matched your search

+4
View File
@@ -931,6 +931,10 @@ class TelegramChannel(BaseChannel):
meta = metadata or {}
int_chat_id = int(chat_id)
if stream_end and merge_next:
if not delta:
return
stream_end = False
if stream_end:
buf = self._stream_bufs.get(chat_id)
if not buf or not buf.message_id or not buf.text: