fix telegram streaming message boundaries

This commit is contained in:
Xubin Ren
2026-03-26 02:35:12 +00:00
parent 813de554c9
commit 33abe915e7
4 changed files with 106 additions and 6 deletions
+4
View File
@@ -96,6 +96,10 @@ class BaseChannel(ABC):
Override in subclasses to enable streaming. Implementations should
raise on delivery failure so the channel manager can retry.
Streaming contract: ``_stream_delta`` is a chunk, ``_stream_end`` ends
the current segment, and stateful implementations must key buffers by
``_stream_id`` rather than only by ``chat_id``.
"""
pass