fix: harden telegram streaming finalize and resolve session lock-copy vet issue

This commit is contained in:
lpf
2026-03-04 14:16:48 +08:00
parent 57961d2911
commit 09c06786a4
2 changed files with 3 additions and 2 deletions

View File

@@ -1068,7 +1068,7 @@ func (c *TelegramChannel) deleteTelegramMessageWithRetry(ctx context.Context, ch
func (c *TelegramChannel) handleAction(ctx context.Context, chatID int64, action string, msg bus.OutboundMessage) error {
messageID, ok := parseTelegramMessageID(msg.MessageID)
if !ok && action != "send" && action != "stream" {
if !ok && action != "send" && action != "stream" && action != "finalize" {
return fmt.Errorf("message_id required for action=%s", action)
}
switch action {