type alias CreateMessageOptions

Fields for createMessage.

Properties

cmdId: number

Command id, such as one of BAICHUAN_CMD.

channelId: number

Channel id, such as one of BAICHUAN_CHANNEL.

messageId: number

Message id the reply will echo.

LEGACY only for the nonce request. Defaults to MODERN_WITH_OFFSET.

The already encrypted channel extension, from extensionXml. It goes before body, and payloadOffset points past it.

optional
body: Uint8Array

The already encrypted body. Defaults to empty.

Usage

import { type CreateMessageOptions } from "protocol/message.ts";