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?
Properties to set
Returns
Properties
albumMessage?
optional
albumMessage:null
|IAlbumMessage
Defined in: WAProto/index.d.ts:18811
Message albumMessage.
Implementation of
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
bcallMessage?
optional
bcallMessage:null
|IBCallMessage
Defined in: WAProto/index.d.ts:18787
Message bcallMessage.
Implementation of
botInvokeMessage?
optional
botInvokeMessage:null
|IFutureProofMessage
Defined in: WAProto/index.d.ts:18775
Message botInvokeMessage.
Implementation of
botTaskMessage?
optional
botTaskMessage:null
|IFutureProofMessage
Defined in: WAProto/index.d.ts:18856
Message botTaskMessage.
Implementation of
buttonsMessage?
optional
buttonsMessage:null
|IButtonsMessage
Defined in: WAProto/index.d.ts:18706
Message buttonsMessage.
Implementation of
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
callLogMesssage?
optional
callLogMesssage:null
|ICallLogMessage
Defined in: WAProto/index.d.ts:18778
Message callLogMesssage.
Implementation of
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
commentMessage?
optional
commentMessage:null
|ICommentMessage
Defined in: WAProto/index.d.ts:18799
Message commentMessage.
Implementation of
contactMessage?
optional
contactMessage:null
|IContactMessage
Defined in: WAProto/index.d.ts:18616
Message contactMessage.
Implementation of
contactsArrayMessage?
optional
contactsArrayMessage:null
|IContactsArrayMessage
Defined in: WAProto/index.d.ts:18643
Message contactsArrayMessage.
Implementation of
conversation?
optional
conversation:null
|string
Defined in: WAProto/index.d.ts:18607
Message conversation.
Implementation of
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
documentMessage?
optional
documentMessage:null
|IDocumentMessage
Defined in: WAProto/index.d.ts:18625
Message documentMessage.
Implementation of
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
encCommentMessage?
optional
encCommentMessage:null
|IEncCommentMessage
Defined in: WAProto/index.d.ts:18784
Message encCommentMessage.
Implementation of
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
ephemeralMessage?
optional
ephemeralMessage:null
|IFutureProofMessage
Defined in: WAProto/index.d.ts:18700
Message ephemeralMessage.
Implementation of
eventCoverImage?
optional
eventCoverImage:null
|IFutureProofMessage
Defined in: WAProto/index.d.ts:18814
Message eventCoverImage.
Implementation of
eventMessage?
optional
eventMessage:null
|IEventMessage
Defined in: WAProto/index.d.ts:18793
Message eventMessage.
Implementation of
extendedTextMessage?
optional
extendedTextMessage:null
|IExtendedTextMessage
Defined in: WAProto/index.d.ts:18622
Message extendedTextMessage.
Implementation of
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
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
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
interactiveMessage?
optional
interactiveMessage:null
|IInteractiveMessage
Defined in: WAProto/index.d.ts:18715
Message interactiveMessage.
Implementation of
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
keepInChatMessage?
optional
keepInChatMessage:null
|IKeepInChatMessage
Defined in: WAProto/index.d.ts:18733
Message keepInChatMessage.
Implementation of
limitSharingMessage?
optional
limitSharingMessage:null
|IFutureProofMessage
Defined in: WAProto/index.d.ts:18853
Message limitSharingMessage.
Implementation of
listMessage?
optional
listMessage:null
|IListMessage
Defined in: WAProto/index.d.ts:18688
Message listMessage.
Implementation of
listResponseMessage?
optional
listResponseMessage:null
|IListResponseMessage
Defined in: WAProto/index.d.ts:18697
Message listResponseMessage.
Implementation of
liveLocationMessage?
optional
liveLocationMessage:null
|ILiveLocationMessage
Defined in: WAProto/index.d.ts:18655
Message liveLocationMessage.
Implementation of
locationMessage?
optional
locationMessage:null
|ILocationMessage
Defined in: WAProto/index.d.ts:18619
Message locationMessage.
Implementation of
lottieStickerMessage?
optional
lottieStickerMessage:null
|IFutureProofMessage
Defined in: WAProto/index.d.ts:18790
Message lottieStickerMessage.
Implementation of
messageContextInfo?
optional
messageContextInfo:null
|IMessageContextInfo
Defined in: WAProto/index.d.ts:18685
Message messageContextInfo.
Implementation of
messageHistoryBundle?
optional
messageHistoryBundle:null
|IMessageHistoryBundle
Defined in: WAProto/index.d.ts:18781
Message messageHistoryBundle.
Implementation of
messageHistoryNotice?
optional
messageHistoryNotice:null
|IMessageHistoryNotice
Defined in: WAProto/index.d.ts:18862
Message messageHistoryNotice.
Implementation of
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
paymentInviteMessage?
optional
paymentInviteMessage:null
|IPaymentInviteMessage
Defined in: WAProto/index.d.ts:18712
Message paymentInviteMessage.
Implementation of
pinInChatMessage?
optional
pinInChatMessage:null
|IPinInChatMessage
Defined in: WAProto/index.d.ts:18763
Message pinInChatMessage.
Implementation of
placeholderMessage?
optional
placeholderMessage:null
|IPlaceholderMessage
Defined in: WAProto/index.d.ts:18805
Message placeholderMessage.
Implementation of
pollCreationMessage?
optional
pollCreationMessage:null
|IPollCreationMessage
Defined in: WAProto/index.d.ts:18727
Message pollCreationMessage.
Implementation of
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
productMessage?
optional
productMessage:null
|IProductMessage
Defined in: WAProto/index.d.ts:18679
Message productMessage.
Implementation of
protocolMessage?
optional
protocolMessage:null
|IProtocolMessage
Defined in: WAProto/index.d.ts:18640
Message protocolMessage.
Implementation of
ptvMessage?
optional
ptvMessage:null
|IVideoMessage
Defined in: WAProto/index.d.ts:18772
Message ptvMessage.
Implementation of
questionMessage?
optional
questionMessage:null
|IFutureProofMessage
Defined in: WAProto/index.d.ts:18859
Message questionMessage.
Implementation of
reactionMessage?
optional
reactionMessage:null
|IReactionMessage
Defined in: WAProto/index.d.ts:18718
Message reactionMessage.
Implementation of
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
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
statusAddYours?
optional
statusAddYours:null
|IFutureProofMessage
Defined in: WAProto/index.d.ts:18841
Message statusAddYours.
Implementation of
statusMentionMessage?
optional
statusMentionMessage:null
|IFutureProofMessage
Defined in: WAProto/index.d.ts:18820
Message statusMentionMessage.
Implementation of
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
stickerPackMessage?
optional
stickerPackMessage:null
|IStickerPackMessage
Defined in: WAProto/index.d.ts:18817
Message stickerPackMessage.
Implementation of
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
videoMessage?
optional
videoMessage:null
|IVideoMessage
Defined in: WAProto/index.d.ts:18631
Message videoMessage.
Implementation of
viewOnceMessage?
optional
viewOnceMessage:null
|IFutureProofMessage
Defined in: WAProto/index.d.ts:18691
Message viewOnceMessage.
Implementation of
viewOnceMessageV2?
optional
viewOnceMessageV2:null
|IFutureProofMessage
Defined in: WAProto/index.d.ts:18742
Message viewOnceMessageV2.
Implementation of
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?
Properties to set
Returns
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
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
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
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
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
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
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