fix: wire pollingTimeoutSec from config to TelegramClient

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
owo
2026-08-14 16:33:08 +08:00
co-authored by Cursor
parent 27f02b7460
commit 0a4847d955
3 changed files with 34 additions and 1 deletions
+1
View File
@@ -44,6 +44,7 @@ export function apply(ctx: Context, config: TelegramChannelConfig): void {
provider: config.provider ?? 'deepseek-official',
model: config.model ?? 'deepseek-v4-flash',
maxMessageLength: config.maxMessageLength ?? 4096,
pollingTimeoutSec: config.pollingTimeoutSec ?? 30,
cwd: config.cwd ?? process.cwd(),
})
ctx.effect(() => {