sipeed/picoclaw · error
telegram streaming disabled after previous draft failure
Error message
telegram streaming disabled after previous draft failure
What it means
Error "telegram streaming disabled after previous draft failure" thrown in sipeed/picoclaw.
Source
Thrown at pkg/channels/telegram/telegram.go:1693
bot *telego.Bot
chatID int64
threadID int
draftID int
throttleInterval time.Duration
minGrowth int
lastLen int
lastAt time.Time
failed bool
draftTouched bool
mu sync.Mutex
}
func (s *telegramStreamer) Update(ctx context.Context, content string) error {
s.mu.Lock()
defer s.mu.Unlock()
if s.failed {
return fmt.Errorf("telegram streaming disabled after previous draft failure")
}
// Throttle: skip if not enough time or content has passed
now := time.Now()
growth := len(content) - s.lastLen
if s.lastLen > 0 && now.Sub(s.lastAt) < s.throttleInterval && growth < s.minGrowth {
return nil
}
htmlContent := markdownToTelegramHTML(content)
s.draftTouched = true
err := s.bot.SendMessageDraft(ctx, &telego.SendMessageDraftParams{
ChatID: s.chatID,
MessageThreadID: s.threadID,
DraftID: s.draftID,
Text: htmlContent,
ParseMode: telego.ModeHTML,View on GitHub (pinned to 49183d7e8d)
When it happens
Trigger: Thrown at pkg/channels/telegram/telegram.go:1693 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of sipeed/picoclaw@49183d7e8d (2026-08-15).
Data as JSON: /api/errors/306eca1547075829.
Report an issue: GitHub.