The text message body class.

Hierarchy (view full)

Constructors

  • Parameters

    • params: {
          content: string;
          lastModifyOperatorId?: string;
          lastModifyTime?: number;
          modifyCount?: number;
          targetLanguageCodes?: string[];
          translations?: any;
      }
      • content: string
      • OptionallastModifyOperatorId?: string
      • OptionallastModifyTime?: number
      • OptionalmodifyCount?: number
      • OptionaltargetLanguageCodes?: string[]
      • Optionaltranslations?: any

    Returns ChatTextMessageBody

Properties

content: string

The text message content.

lastModifyOperatorId?: string

The user ID of the operator that modified the message last time.

lastModifyTime?: number

The UNIX timestamp of the last message modification, in milliseconds.

modifyCount?: number

The number of times a message is modified.

targetLanguageCodes?: string[]
translations?: any

The translation.

It is a KV object, where the key is the target language and the value is the translation.

The message type. See ChatMessageType.