Skip to main content

Class: Message

Defined in: WAProto/index.d.ts:18598

Represents a Message.

Implements

Constructors

new Message()

new Message(properties?): Message

Defined in: WAProto/index.d.ts:18604

Constructs a new Message.

Parameters

properties?

IMessage

Properties to set

Returns

Message

Properties

albumMessage?

optional albumMessage: null | IAlbumMessage

Defined in: WAProto/index.d.ts:18811

Message albumMessage.

Implementation of

IMessage.albumMessage


associatedChildMessage?

optional associatedChildMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18829

Message associatedChildMessage.

Implementation of

IMessage.associatedChildMessage


audioMessage?

optional audioMessage: null | IAudioMessage

Defined in: WAProto/index.d.ts:18628

Message audioMessage.

Implementation of

IMessage.audioMessage


bcallMessage?

optional bcallMessage: null | IBCallMessage

Defined in: WAProto/index.d.ts:18787

Message bcallMessage.

Implementation of

IMessage.bcallMessage


botInvokeMessage?

optional botInvokeMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18775

Message botInvokeMessage.

Implementation of

IMessage.botInvokeMessage


botTaskMessage?

optional botTaskMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18856

Message botTaskMessage.

Implementation of

IMessage.botTaskMessage


buttonsMessage?

optional buttonsMessage: null | IButtonsMessage

Defined in: WAProto/index.d.ts:18706

Message buttonsMessage.

Implementation of

IMessage.buttonsMessage


buttonsResponseMessage?

optional buttonsResponseMessage: null | IButtonsResponseMessage

Defined in: WAProto/index.d.ts:18709

Message buttonsResponseMessage.

Implementation of

IMessage.buttonsResponseMessage


call?

optional call: null | ICall

Defined in: WAProto/index.d.ts:18634

Message call.

Implementation of

IMessage.call


callLogMesssage?

optional callLogMesssage: null | ICallLogMessage

Defined in: WAProto/index.d.ts:18778

Message callLogMesssage.

Implementation of

IMessage.callLogMesssage


cancelPaymentRequestMessage?

optional cancelPaymentRequestMessage: null | ICancelPaymentRequestMessage

Defined in: WAProto/index.d.ts:18664

Message cancelPaymentRequestMessage.

Implementation of

IMessage.cancelPaymentRequestMessage


chat?

optional chat: null | IChat

Defined in: WAProto/index.d.ts:18637

Message chat.

Implementation of

IMessage.chat


commentMessage?

optional commentMessage: null | ICommentMessage

Defined in: WAProto/index.d.ts:18799

Message commentMessage.

Implementation of

IMessage.commentMessage


contactMessage?

optional contactMessage: null | IContactMessage

Defined in: WAProto/index.d.ts:18616

Message contactMessage.

Implementation of

IMessage.contactMessage


contactsArrayMessage?

optional contactsArrayMessage: null | IContactsArrayMessage

Defined in: WAProto/index.d.ts:18643

Message contactsArrayMessage.

Implementation of

IMessage.contactsArrayMessage


conversation?

optional conversation: null | string

Defined in: WAProto/index.d.ts:18607

Message conversation.

Implementation of

IMessage.conversation


declinePaymentRequestMessage?

optional declinePaymentRequestMessage: null | IDeclinePaymentRequestMessage

Defined in: WAProto/index.d.ts:18661

Message declinePaymentRequestMessage.

Implementation of

IMessage.declinePaymentRequestMessage


deviceSentMessage?

optional deviceSentMessage: null | IDeviceSentMessage

Defined in: WAProto/index.d.ts:18682

Message deviceSentMessage.

Implementation of

IMessage.deviceSentMessage


documentMessage?

optional documentMessage: null | IDocumentMessage

Defined in: WAProto/index.d.ts:18625

Message documentMessage.

Implementation of

IMessage.documentMessage


documentWithCaptionMessage?

optional documentWithCaptionMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18736

Message documentWithCaptionMessage.

Implementation of

IMessage.documentWithCaptionMessage


editedMessage?

optional editedMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18748

Message editedMessage.

Implementation of

IMessage.editedMessage


encCommentMessage?

optional encCommentMessage: null | IEncCommentMessage

Defined in: WAProto/index.d.ts:18784

Message encCommentMessage.

Implementation of

IMessage.encCommentMessage


encEventResponseMessage?

optional encEventResponseMessage: null | IEncEventResponseMessage

Defined in: WAProto/index.d.ts:18796

Message encEventResponseMessage.

Implementation of

IMessage.encEventResponseMessage


encReactionMessage?

optional encReactionMessage: null | IEncReactionMessage

Defined in: WAProto/index.d.ts:18745

Message encReactionMessage.

Implementation of

IMessage.encReactionMessage


ephemeralMessage?

optional ephemeralMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18700

Message ephemeralMessage.

Implementation of

IMessage.ephemeralMessage


eventCoverImage?

optional eventCoverImage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18814

Message eventCoverImage.

Implementation of

IMessage.eventCoverImage


eventMessage?

optional eventMessage: null | IEventMessage

Defined in: WAProto/index.d.ts:18793

Message eventMessage.

Implementation of

IMessage.eventMessage


extendedTextMessage?

optional extendedTextMessage: null | IExtendedTextMessage

Defined in: WAProto/index.d.ts:18622

Message extendedTextMessage.

Implementation of

IMessage.extendedTextMessage


fastRatchetKeySenderKeyDistributionMessage?

optional fastRatchetKeySenderKeyDistributionMessage: null | ISenderKeyDistributionMessage

Defined in: WAProto/index.d.ts:18649

Message fastRatchetKeySenderKeyDistributionMessage.

Implementation of

IMessage.fastRatchetKeySenderKeyDistributionMessage


groupInviteMessage?

optional groupInviteMessage: null | IGroupInviteMessage

Defined in: WAProto/index.d.ts:18673

Message groupInviteMessage.

Implementation of

IMessage.groupInviteMessage


groupMentionedMessage?

optional groupMentionedMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18760

Message groupMentionedMessage.

Implementation of

IMessage.groupMentionedMessage


groupStatusMentionMessage?

optional groupStatusMentionMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18832

Message groupStatusMentionMessage.

Implementation of

IMessage.groupStatusMentionMessage


groupStatusMessage?

optional groupStatusMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18844

Message groupStatusMessage.

Implementation of

IMessage.groupStatusMessage


highlyStructuredMessage?

optional highlyStructuredMessage: null | IHighlyStructuredMessage

Defined in: WAProto/index.d.ts:18646

Message highlyStructuredMessage.

Implementation of

IMessage.highlyStructuredMessage


imageMessage?

optional imageMessage: null | IImageMessage

Defined in: WAProto/index.d.ts:18613

Message imageMessage.

Implementation of

IMessage.imageMessage


interactiveMessage?

optional interactiveMessage: null | IInteractiveMessage

Defined in: WAProto/index.d.ts:18715

Message interactiveMessage.

Implementation of

IMessage.interactiveMessage


interactiveResponseMessage?

optional interactiveResponseMessage: null | IInteractiveResponseMessage

Defined in: WAProto/index.d.ts:18724

Message interactiveResponseMessage.

Implementation of

IMessage.interactiveResponseMessage


invoiceMessage?

optional invoiceMessage: null | IInvoiceMessage

Defined in: WAProto/index.d.ts:18703

Message invoiceMessage.

Implementation of

IMessage.invoiceMessage


keepInChatMessage?

optional keepInChatMessage: null | IKeepInChatMessage

Defined in: WAProto/index.d.ts:18733

Message keepInChatMessage.

Implementation of

IMessage.keepInChatMessage


limitSharingMessage?

optional limitSharingMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18853

Message limitSharingMessage.

Implementation of

IMessage.limitSharingMessage


listMessage?

optional listMessage: null | IListMessage

Defined in: WAProto/index.d.ts:18688

Message listMessage.

Implementation of

IMessage.listMessage


listResponseMessage?

optional listResponseMessage: null | IListResponseMessage

Defined in: WAProto/index.d.ts:18697

Message listResponseMessage.

Implementation of

IMessage.listResponseMessage


liveLocationMessage?

optional liveLocationMessage: null | ILiveLocationMessage

Defined in: WAProto/index.d.ts:18655

Message liveLocationMessage.

Implementation of

IMessage.liveLocationMessage


locationMessage?

optional locationMessage: null | ILocationMessage

Defined in: WAProto/index.d.ts:18619

Message locationMessage.

Implementation of

IMessage.locationMessage


lottieStickerMessage?

optional lottieStickerMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18790

Message lottieStickerMessage.

Implementation of

IMessage.lottieStickerMessage


messageContextInfo?

optional messageContextInfo: null | IMessageContextInfo

Defined in: WAProto/index.d.ts:18685

Message messageContextInfo.

Implementation of

IMessage.messageContextInfo


messageHistoryBundle?

optional messageHistoryBundle: null | IMessageHistoryBundle

Defined in: WAProto/index.d.ts:18781

Message messageHistoryBundle.

Implementation of

IMessage.messageHistoryBundle


messageHistoryNotice?

optional messageHistoryNotice: null | IMessageHistoryNotice

Defined in: WAProto/index.d.ts:18862

Message messageHistoryNotice.

Implementation of

IMessage.messageHistoryNotice


newsletterAdminInviteMessage?

optional newsletterAdminInviteMessage: null | INewsletterAdminInviteMessage

Defined in: WAProto/index.d.ts:18802

Message newsletterAdminInviteMessage.

Implementation of

IMessage.newsletterAdminInviteMessage


orderMessage?

optional orderMessage: null | IOrderMessage

Defined in: WAProto/index.d.ts:18694

Message orderMessage.

Implementation of

IMessage.orderMessage


paymentInviteMessage?

optional paymentInviteMessage: null | IPaymentInviteMessage

Defined in: WAProto/index.d.ts:18712

Message paymentInviteMessage.

Implementation of

IMessage.paymentInviteMessage


pinInChatMessage?

optional pinInChatMessage: null | IPinInChatMessage

Defined in: WAProto/index.d.ts:18763

Message pinInChatMessage.

Implementation of

IMessage.pinInChatMessage


placeholderMessage?

optional placeholderMessage: null | IPlaceholderMessage

Defined in: WAProto/index.d.ts:18805

Message placeholderMessage.

Implementation of

IMessage.placeholderMessage


pollCreationMessage?

optional pollCreationMessage: null | IPollCreationMessage

Defined in: WAProto/index.d.ts:18727

Message pollCreationMessage.

Implementation of

IMessage.pollCreationMessage


pollCreationMessageV2?

optional pollCreationMessageV2: null | IPollCreationMessage

Defined in: WAProto/index.d.ts:18754

Message pollCreationMessageV2.

Implementation of

IMessage.pollCreationMessageV2


pollCreationMessageV3?

optional pollCreationMessageV3: null | IPollCreationMessage

Defined in: WAProto/index.d.ts:18766

Message pollCreationMessageV3.

Implementation of

IMessage.pollCreationMessageV3


pollCreationMessageV4?

optional pollCreationMessageV4: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18835

Message pollCreationMessageV4.

Implementation of

IMessage.pollCreationMessageV4


pollCreationMessageV5?

optional pollCreationMessageV5: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18838

Message pollCreationMessageV5.

Implementation of

IMessage.pollCreationMessageV5


pollCreationOptionImageMessage?

optional pollCreationOptionImageMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18826

Message pollCreationOptionImageMessage.

Implementation of

IMessage.pollCreationOptionImageMessage


pollResultSnapshotMessage?

optional pollResultSnapshotMessage: null | IPollResultSnapshotMessage

Defined in: WAProto/index.d.ts:18823

Message pollResultSnapshotMessage.

Implementation of

IMessage.pollResultSnapshotMessage


pollUpdateMessage?

optional pollUpdateMessage: null | IPollUpdateMessage

Defined in: WAProto/index.d.ts:18730

Message pollUpdateMessage.

Implementation of

IMessage.pollUpdateMessage


productMessage?

optional productMessage: null | IProductMessage

Defined in: WAProto/index.d.ts:18679

Message productMessage.

Implementation of

IMessage.productMessage


protocolMessage?

optional protocolMessage: null | IProtocolMessage

Defined in: WAProto/index.d.ts:18640

Message protocolMessage.

Implementation of

IMessage.protocolMessage


ptvMessage?

optional ptvMessage: null | IVideoMessage

Defined in: WAProto/index.d.ts:18772

Message ptvMessage.

Implementation of

IMessage.ptvMessage


questionMessage?

optional questionMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18859

Message questionMessage.

Implementation of

IMessage.questionMessage


reactionMessage?

optional reactionMessage: null | IReactionMessage

Defined in: WAProto/index.d.ts:18718

Message reactionMessage.

Implementation of

IMessage.reactionMessage


requestPaymentMessage?

optional requestPaymentMessage: null | IRequestPaymentMessage

Defined in: WAProto/index.d.ts:18658

Message requestPaymentMessage.

Implementation of

IMessage.requestPaymentMessage


requestPhoneNumberMessage?

optional requestPhoneNumberMessage: null | IRequestPhoneNumberMessage

Defined in: WAProto/index.d.ts:18739

Message requestPhoneNumberMessage.

Implementation of

IMessage.requestPhoneNumberMessage


richResponseMessage?

optional richResponseMessage: null | IAIRichResponseMessage

Defined in: WAProto/index.d.ts:18847

Message richResponseMessage.

Implementation of

IMessage.richResponseMessage


scheduledCallCreationMessage?

optional scheduledCallCreationMessage: null | IScheduledCallCreationMessage

Defined in: WAProto/index.d.ts:18757

Message scheduledCallCreationMessage.

Implementation of

IMessage.scheduledCallCreationMessage


scheduledCallEditMessage?

optional scheduledCallEditMessage: null | IScheduledCallEditMessage

Defined in: WAProto/index.d.ts:18769

Message scheduledCallEditMessage.

Implementation of

IMessage.scheduledCallEditMessage


secretEncryptedMessage?

optional secretEncryptedMessage: null | ISecretEncryptedMessage

Defined in: WAProto/index.d.ts:18808

Message secretEncryptedMessage.

Implementation of

IMessage.secretEncryptedMessage


senderKeyDistributionMessage?

optional senderKeyDistributionMessage: null | ISenderKeyDistributionMessage

Defined in: WAProto/index.d.ts:18610

Message senderKeyDistributionMessage.

Implementation of

IMessage.senderKeyDistributionMessage


sendPaymentMessage?

optional sendPaymentMessage: null | ISendPaymentMessage

Defined in: WAProto/index.d.ts:18652

Message sendPaymentMessage.

Implementation of

IMessage.sendPaymentMessage


statusAddYours?

optional statusAddYours: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18841

Message statusAddYours.

Implementation of

IMessage.statusAddYours


statusMentionMessage?

optional statusMentionMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18820

Message statusMentionMessage.

Implementation of

IMessage.statusMentionMessage


statusNotificationMessage?

optional statusNotificationMessage: null | IStatusNotificationMessage

Defined in: WAProto/index.d.ts:18850

Message statusNotificationMessage.

Implementation of

IMessage.statusNotificationMessage


stickerMessage?

optional stickerMessage: null | IStickerMessage

Defined in: WAProto/index.d.ts:18670

Message stickerMessage.

Implementation of

IMessage.stickerMessage


stickerPackMessage?

optional stickerPackMessage: null | IStickerPackMessage

Defined in: WAProto/index.d.ts:18817

Message stickerPackMessage.

Implementation of

IMessage.stickerPackMessage


stickerSyncRmrMessage?

optional stickerSyncRmrMessage: null | IStickerSyncRMRMessage

Defined in: WAProto/index.d.ts:18721

Message stickerSyncRmrMessage.

Implementation of

IMessage.stickerSyncRmrMessage


templateButtonReplyMessage?

optional templateButtonReplyMessage: null | ITemplateButtonReplyMessage

Defined in: WAProto/index.d.ts:18676

Message templateButtonReplyMessage.

Implementation of

IMessage.templateButtonReplyMessage


templateMessage?

optional templateMessage: null | ITemplateMessage

Defined in: WAProto/index.d.ts:18667

Message templateMessage.

Implementation of

IMessage.templateMessage


videoMessage?

optional videoMessage: null | IVideoMessage

Defined in: WAProto/index.d.ts:18631

Message videoMessage.

Implementation of

IMessage.videoMessage


viewOnceMessage?

optional viewOnceMessage: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18691

Message viewOnceMessage.

Implementation of

IMessage.viewOnceMessage


viewOnceMessageV2?

optional viewOnceMessageV2: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18742

Message viewOnceMessageV2.

Implementation of

IMessage.viewOnceMessageV2


viewOnceMessageV2Extension?

optional viewOnceMessageV2Extension: null | IFutureProofMessage

Defined in: WAProto/index.d.ts:18751

Message viewOnceMessageV2Extension.

Implementation of

IMessage.viewOnceMessageV2Extension

Methods

toJSON()

toJSON(): object

Defined in: WAProto/index.d.ts:18932

Converts this Message to JSON.

Returns

object

JSON object


create()

static create(properties?): Message

Defined in: WAProto/index.d.ts:18869

Creates a new Message instance using the specified properties.

Parameters

properties?

IMessage

Properties to set

Returns

Message

Message instance


decode()

static decode(reader, length?): Message

Defined in: WAProto/index.d.ts:18895

Decodes a Message message from the specified reader or buffer.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

length?

number

Message length if known beforehand

Returns

Message

Message

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): Message

Defined in: WAProto/index.d.ts:18904

Decodes a Message message from the specified reader or buffer, length delimited.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

Message

Message

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode()

static encode(message, writer?): Writer

Defined in: WAProto/index.d.ts:18877

Encodes the specified Message message. Does not implicitly verify messages.

Parameters

message

IMessage

Message message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


encodeDelimited()

static encodeDelimited(message, writer?): Writer

Defined in: WAProto/index.d.ts:18885

Encodes the specified Message message, length delimited. Does not implicitly verify messages.

Parameters

message

IMessage

Message message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): Message

Defined in: WAProto/index.d.ts:18918

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

Parameters

object

Plain object

Returns

Message

Message


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

Defined in: WAProto/index.d.ts:18939

Gets the default type url for Message

Parameters

typeUrlPrefix?

string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject()

static toObject(message, options?): object

Defined in: WAProto/index.d.ts:18926

Creates a plain object from a Message message. Also converts values to other types if specified.

Parameters

message

Message

Message

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

Defined in: WAProto/index.d.ts:18911

Verifies a Message message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not