Options
All
  • Public
  • Public/Protected
  • All
Menu

Represents a Message.

Hierarchy

  • Message

Implements

Index

Constructors

Properties

audioMessage?: IAudioMessage

Message audioMessage.

buttonsMessage?: IButtonsMessage

Message buttonsMessage.

buttonsResponseMessage?: IButtonsResponseMessage

Message buttonsResponseMessage.

call?: ICall

Message call.

cancelPaymentRequestMessage?: ICancelPaymentRequestMessage

Message cancelPaymentRequestMessage.

chat?: IChat

Message chat.

contactMessage?: IContactMessage

Message contactMessage.

contactsArrayMessage?: IContactsArrayMessage

Message contactsArrayMessage.

conversation: string

Message conversation.

declinePaymentRequestMessage?: IDeclinePaymentRequestMessage

Message declinePaymentRequestMessage.

deviceSentMessage?: IDeviceSentMessage

Message deviceSentMessage.

documentMessage?: IDocumentMessage

Message documentMessage.

ephemeralMessage?: IFutureProofMessage

Message ephemeralMessage.

extendedTextMessage?: IExtendedTextMessage

Message extendedTextMessage.

fastRatchetKeySenderKeyDistributionMessage?: ISenderKeyDistributionMessage

Message fastRatchetKeySenderKeyDistributionMessage.

groupInviteMessage?: IGroupInviteMessage

Message groupInviteMessage.

highlyStructuredMessage?: IHighlyStructuredMessage

Message highlyStructuredMessage.

imageMessage?: IImageMessage

Message imageMessage.

interactiveMessage?: IInteractiveMessage

Message interactiveMessage.

invoiceMessage?: IInvoiceMessage

Message invoiceMessage.

listMessage?: IListMessage

Message listMessage.

listResponseMessage?: IListResponseMessage

Message listResponseMessage.

liveLocationMessage?: ILiveLocationMessage

Message liveLocationMessage.

locationMessage?: ILocationMessage

Message locationMessage.

messageContextInfo?: IMessageContextInfo

Message messageContextInfo.

orderMessage?: IOrderMessage

Message orderMessage.

paymentInviteMessage?: IPaymentInviteMessage

Message paymentInviteMessage.

productMessage?: IProductMessage

Message productMessage.

protocolMessage?: IProtocolMessage

Message protocolMessage.

reactionMessage?: IReactionMessage

Message reactionMessage.

requestPaymentMessage?: IRequestPaymentMessage

Message requestPaymentMessage.

sendPaymentMessage?: ISendPaymentMessage

Message sendPaymentMessage.

senderKeyDistributionMessage?: ISenderKeyDistributionMessage

Message senderKeyDistributionMessage.

stickerMessage?: IStickerMessage

Message stickerMessage.

stickerSyncRmrMessage?: IStickerSyncRMRMessage

Message stickerSyncRmrMessage.

templateButtonReplyMessage?: ITemplateButtonReplyMessage

Message templateButtonReplyMessage.

templateMessage?: ITemplateMessage

Message templateMessage.

videoMessage?: IVideoMessage

Message videoMessage.

viewOnceMessage?: IFutureProofMessage

Message viewOnceMessage.

Methods

  • toJSON(): {}
  • decode(reader: Uint8Array | Reader, length?: number): Message
  • Decodes a Message message from the specified reader or buffer.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    • Optional length: number

    Returns Message

    Message

  • decodeDelimited(reader: Uint8Array | Reader): Message
  • Decodes a Message message from the specified reader or buffer, length delimited.

    throws

    {Error} If the payload is not a reader or valid buffer

    throws

    {$protobuf.util.ProtocolError} If required fields are missing

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    Returns Message

    Message

  • encode(message: IMessage, writer?: Writer): Writer
  • Encodes the specified Message message. Does not implicitly verify messages.

    Parameters

    • message: IMessage

      Message message or plain object to encode

    • Optional writer: Writer

    Returns Writer

    Writer

  • encodeDelimited(message: IMessage, writer?: Writer): Writer
  • Encodes the specified Message message, length delimited. Does not implicitly verify messages.

    Parameters

    • message: IMessage

      Message message or plain object to encode

    • Optional writer: Writer

    Returns Writer

    Writer

  • Creates a Message message from a plain object. Also converts values to their respective internal types.

    Parameters

    • object: {}

      Plain object

      • [k: string]: any

    Returns Message

    Message

  • toObject(message: Message, options?: IConversionOptions): {}
  • Creates a plain object from a Message message. Also converts values to other types if specified.

    Parameters

    • message: Message

      Message

    • Optional options: IConversionOptions

    Returns {}

    Plain object

    • [k: string]: any
  • verify(message: {}): string
  • Verifies a Message message.

    Parameters

    • message: {}

      Plain object to verify

      • [k: string]: any

    Returns string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc