{"record":{"id":"0328c17bc3ed2c06","repo":"sipeed/picoclaw","slug":"streaming-disabled-in-config","errorCode":null,"errorMessage":"streaming disabled in config","messagePattern":"streaming disabled in config","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"pkg/channels/telegram/telegram.go","lineNumber":1652,"sourceCode":"\treturn strings.EqualFold(mentionUsername, botUsername)\n}\n\n// stripBotMention removes the @bot mention from the content.\nfunc (c *TelegramChannel) stripBotMention(content string) string {\n\tbotUsername := c.bot.Username()\n\tif botUsername == \"\" {\n\t\treturn content\n\t}\n\t// Case-insensitive replacement\n\tre := regexp.MustCompile(`(?i)@` + regexp.QuoteMeta(botUsername))\n\tcontent = re.ReplaceAllString(content, \"\")\n\treturn strings.TrimSpace(content)\n}\n\n// BeginStream implements channels.StreamingCapable.\nfunc (c *TelegramChannel) BeginStream(ctx context.Context, chatID string) (channels.Streamer, error) {\n\tif !c.tgCfg.Streaming.Enabled {\n\t\treturn nil, fmt.Errorf(\"streaming disabled in config\")\n\t}\n\n\tcid, threadID, err := parseTelegramChatID(chatID)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\n\tstreamCfg := c.tgCfg.Streaming.WithDefaults(3, 200)\n\treturn &telegramStreamer{\n\t\tbot:              c.bot,\n\t\tchatID:           cid,\n\t\tthreadID:         threadID,\n\t\tdraftID:          cryptoRandInt(),\n\t\tthrottleInterval: time.Duration(streamCfg.ThrottleSeconds) * time.Second,\n\t\tminGrowth:        streamCfg.MinGrowthChars,\n\t}, nil\n}\n","sourceCodeStart":1634,"sourceCodeEnd":1670,"githubUrl":"https://github.com/sipeed/picoclaw/blob/49183d7e8daed0dba89ddbb6fcb60089401d9680/pkg/channels/telegram/telegram.go#L1634-L1670","documentation":"Error \"streaming disabled in config\" thrown in sipeed/picoclaw.","triggerScenarios":"Thrown at pkg/channels/telegram/telegram.go:1652 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"49183d7e8daed0dba89ddbb6fcb60089401d9680","analyzedAt":"2026-08-15T21:55:41.315Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}