fix(telegram): restore outbound poll cap · openclaw/openclaw@c967628
obviyus
·
2026-05-07
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -24,6 +24,7 @@ import { resolveTelegramInteractiveTextFallback } from "./interactive-fallback.j
|
24 | 24 | import { parseTelegramReplyToMessageId, parseTelegramThreadId } from "./outbound-params.js"; |
25 | 25 | |
26 | 26 | export const TELEGRAM_TEXT_CHUNK_LIMIT = 4000; |
| 27 | +export const TELEGRAM_POLL_OPTION_LIMIT = 10; |
27 | 28 | |
28 | 29 | type TelegramSendFn = typeof import("./send.js").sendMessageTelegram; |
29 | 30 | type TelegramSendModule = typeof import("./send.js"); |
@@ -195,6 +196,7 @@ export function createTelegramOutboundAdapter(
|
195 | 196 | }, |
196 | 197 | resolveEffectiveTextChunkLimit: ({ fallbackLimit }) => |
197 | 198 | typeof fallbackLimit === "number" ? Math.min(fallbackLimit, 4096) : 4096, |
| 199 | +pollMaxOptions: TELEGRAM_POLL_OPTION_LIMIT, |
198 | 200 | supportsPollDurationSeconds: true, |
199 | 201 | supportsAnonymousPolls: true, |
200 | 202 | ...createAttachedChannelResultAdapter({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。