mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-17 12:20:46 +08:00
fix(weixin): align long-reply limits across runtime
This commit is contained in:
parent
868372fb04
commit
5e07137c44
7 changed files with 178 additions and 165 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import { WeixinApiError } from './weixin-api.mjs';
|
||||
import { DEFAULT_WEIXIN_MAX_MESSAGE_CHARS, WeixinApiError } from './weixin-api.mjs';
|
||||
import { createWeixinBridgeStatus, WeixinHarnessBridge } from './weixin-bridge.mjs';
|
||||
import {
|
||||
connectionTestTarget,
|
||||
|
|
@ -109,7 +109,7 @@ export class WeixinRuntime {
|
|||
state,
|
||||
logger = console,
|
||||
replyTimeoutMs = 600_000,
|
||||
maxMessageChars = 4_000,
|
||||
maxMessageChars = DEFAULT_WEIXIN_MAX_MESSAGE_CHARS,
|
||||
startRetryDelaysMs,
|
||||
}) {
|
||||
if (!api || !config || !token || !harness || !state) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue