Skip to content

weixin-ts / bot/src / GetUpdatesResp

Interface: GetUpdatesResp

Defined in: bot/src/types.ts:182

getUpdates response payload

Properties

errcode?

optional errcode?: number

Defined in: bot/src/types.ts:185

Server error code (e.g. -14 = session timeout)


errmsg?

optional errmsg?: string

Defined in: bot/src/types.ts:186


get_updates_buf?

optional get_updates_buf?: string

Defined in: bot/src/types.ts:189

Full context buf to cache locally and send on next request


longpolling_timeout_ms?

optional longpolling_timeout_ms?: number

Defined in: bot/src/types.ts:191

Server-suggested timeout (ms) for the next long-poll


msgs?

optional msgs?: WeixinMessage[]

Defined in: bot/src/types.ts:187


ret?

optional ret?: number

Defined in: bot/src/types.ts:183

Released under the MIT License.