Class: Conversation
Defined in: WAProto/index.d.ts:12475
Represents a Conversation.
Implements
Constructors
new Conversation()
new Conversation(
properties
?):Conversation
Defined in: WAProto/index.d.ts:12481
Constructs a new Conversation.
Parameters
properties?
Properties to set
Returns
Properties
accountLid?
optional
accountLid:null
|string
Defined in: WAProto/index.d.ts:12628
Conversation accountLid.
Implementation of
archived?
optional
archived:null
|boolean
Defined in: WAProto/index.d.ts:12529
Conversation archived.
Implementation of
capiCreatedGroup?
optional
capiCreatedGroup:null
|boolean
Defined in: WAProto/index.d.ts:12625
Conversation capiCreatedGroup.
Implementation of
IConversation
.capiCreatedGroup
commentsCount?
optional
commentsCount:null
|number
Defined in: WAProto/index.d.ts:12616
Conversation commentsCount.
Implementation of
contactPrimaryIdentityKey?
optional
contactPrimaryIdentityKey:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:12550
Conversation contactPrimaryIdentityKey.
Implementation of
IConversation
.contactPrimaryIdentityKey
conversationTimestamp?
optional
conversationTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:12517
Conversation conversationTimestamp.
Implementation of
IConversation
.conversationTimestamp
createdAt?
optional
createdAt:null
|number
|Long
Defined in: WAProto/index.d.ts:12574
Conversation createdAt.
Implementation of
createdBy?
optional
createdBy:null
|string
Defined in: WAProto/index.d.ts:12577
Conversation createdBy.
Implementation of
description?
optional
description:null
|string
Defined in: WAProto/index.d.ts:12580
Conversation description.
Implementation of
disappearingMode?
optional
disappearingMode:null
|IDisappearingMode
Defined in: WAProto/index.d.ts:12532
Conversation disappearingMode.
Implementation of
IConversation
.disappearingMode
displayName?
optional
displayName:null
|string
Defined in: WAProto/index.d.ts:12595
Conversation displayName.
Implementation of
endOfHistoryTransfer?
optional
endOfHistoryTransfer:null
|boolean
Defined in: WAProto/index.d.ts:12505
Conversation endOfHistoryTransfer.
Implementation of
IConversation
.endOfHistoryTransfer
endOfHistoryTransferType?
optional
endOfHistoryTransferType:null
|EndOfHistoryTransferType
Defined in: WAProto/index.d.ts:12514
Conversation endOfHistoryTransferType.
Implementation of
IConversation
.endOfHistoryTransferType
ephemeralExpiration?
optional
ephemeralExpiration:null
|number
Defined in: WAProto/index.d.ts:12508
Conversation ephemeralExpiration.
Implementation of
IConversation
.ephemeralExpiration
ephemeralSettingTimestamp?
optional
ephemeralSettingTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:12511
Conversation ephemeralSettingTimestamp.
Implementation of
IConversation
.ephemeralSettingTimestamp
id
id:
string
Defined in: WAProto/index.d.ts:12484
Conversation id.
Implementation of
isDefaultSubgroup?
optional
isDefaultSubgroup:null
|boolean
Defined in: WAProto/index.d.ts:12592
Conversation isDefaultSubgroup.
Implementation of
IConversation
.isDefaultSubgroup
isParentGroup?
optional
isParentGroup:null
|boolean
Defined in: WAProto/index.d.ts:12586
Conversation isParentGroup.
Implementation of
lastMsgTimestamp?
optional
lastMsgTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:12496
Conversation lastMsgTimestamp.
Implementation of
IConversation
.lastMsgTimestamp
lidJid?
optional
lidJid:null
|string
Defined in: WAProto/index.d.ts:12607
Conversation lidJid.
Implementation of
lidOriginType?
optional
lidOriginType:null
|string
Defined in: WAProto/index.d.ts:12613
Conversation lidOriginType.
Implementation of
limitSharing?
optional
limitSharing:null
|boolean
Defined in: WAProto/index.d.ts:12631
Conversation limitSharing.
Implementation of
limitSharingInitiatedByMe?
optional
limitSharingInitiatedByMe:null
|boolean
Defined in: WAProto/index.d.ts:12640
Conversation limitSharingInitiatedByMe.
Implementation of
IConversation
.limitSharingInitiatedByMe
limitSharingSettingTimestamp?
optional
limitSharingSettingTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:12634
Conversation limitSharingSettingTimestamp.
Implementation of
IConversation
.limitSharingSettingTimestamp
limitSharingTrigger?
optional
limitSharingTrigger:null
|TriggerType
Defined in: WAProto/index.d.ts:12637
Conversation limitSharingTrigger.
Implementation of
IConversation
.limitSharingTrigger
locked?
optional
locked:null
|boolean
Defined in: WAProto/index.d.ts:12619
Conversation locked.
Implementation of
markedAsUnread?
optional
markedAsUnread:null
|boolean
Defined in: WAProto/index.d.ts:12538
Conversation markedAsUnread.
Implementation of
mediaVisibility?
optional
mediaVisibility:null
|MediaVisibility
Defined in: WAProto/index.d.ts:12562
Conversation mediaVisibility.
Implementation of
messages
messages:
IHistorySyncMsg
[]
Defined in: WAProto/index.d.ts:12487
Conversation messages.
Implementation of
muteEndTime?
optional
muteEndTime:null
|number
|Long
Defined in: WAProto/index.d.ts:12556
Conversation muteEndTime.
Implementation of
name?
optional
name:null
|string
Defined in: WAProto/index.d.ts:12520
Conversation name.
Implementation of
newJid?
optional
newJid:null
|string
Defined in: WAProto/index.d.ts:12490
Conversation newJid.
Implementation of
notSpam?
optional
notSpam:null
|boolean
Defined in: WAProto/index.d.ts:12526
Conversation notSpam.
Implementation of
oldJid?
optional
oldJid:null
|string
Defined in: WAProto/index.d.ts:12493
Conversation oldJid.
Implementation of
parentGroupId?
optional
parentGroupId:null
|string
Defined in: WAProto/index.d.ts:12589
Conversation parentGroupId.
Implementation of
participant
participant:
IGroupParticipant
[]
Defined in: WAProto/index.d.ts:12541
Conversation participant.
Implementation of
pHash?
optional
pHash:null
|string
Defined in: WAProto/index.d.ts:12523
Conversation pHash.
Implementation of
pinned?
optional
pinned:null
|number
Defined in: WAProto/index.d.ts:12553
Conversation pinned.
Implementation of
pnhDuplicateLidThread?
optional
pnhDuplicateLidThread:null
|boolean
Defined in: WAProto/index.d.ts:12604
Conversation pnhDuplicateLidThread.
Implementation of
IConversation
.pnhDuplicateLidThread
pnJid?
optional
pnJid:null
|string
Defined in: WAProto/index.d.ts:12598
Conversation pnJid.
Implementation of
readOnly?
optional
readOnly:null
|boolean
Defined in: WAProto/index.d.ts:12502
Conversation readOnly.
Implementation of
shareOwnPn?
optional
shareOwnPn:null
|boolean
Defined in: WAProto/index.d.ts:12601
Conversation shareOwnPn.
Implementation of
support?
optional
support:null
|boolean
Defined in: WAProto/index.d.ts:12583
Conversation support.
Implementation of
suspended?
optional
suspended:null
|boolean
Defined in: WAProto/index.d.ts:12568
Conversation suspended.
Implementation of
systemMessageToInsert?
optional
systemMessageToInsert:null
|PrivacySystemMessage
Defined in: WAProto/index.d.ts:12622
Conversation systemMessageToInsert.
Implementation of
IConversation
.systemMessageToInsert
tcToken?
optional
tcToken:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:12544
Conversation tcToken.
Implementation of
tcTokenSenderTimestamp?
optional
tcTokenSenderTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:12565
Conversation tcTokenSenderTimestamp.
Implementation of
IConversation
.tcTokenSenderTimestamp
tcTokenTimestamp?
optional
tcTokenTimestamp:null
|number
|Long
Defined in: WAProto/index.d.ts:12547
Conversation tcTokenTimestamp.
Implementation of
IConversation
.tcTokenTimestamp
terminated?
optional
terminated:null
|boolean
Defined in: WAProto/index.d.ts:12571
Conversation terminated.
Implementation of
unreadCount?
optional
unreadCount:null
|number
Defined in: WAProto/index.d.ts:12499
Conversation unreadCount.
Implementation of
unreadMentionCount?
optional
unreadMentionCount:null
|number
Defined in: WAProto/index.d.ts:12535
Conversation unreadMentionCount.
Implementation of
IConversation
.unreadMentionCount
username?
optional
username:null
|string
Defined in: WAProto/index.d.ts:12610
Conversation username.
Implementation of
wallpaper?
optional
wallpaper:null
|IWallpaperSettings
Defined in: WAProto/index.d.ts:12559
Conversation wallpaper.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:12710
Converts this Conversation to JSON.
Returns
object
JSON object
create()
static
create(properties
?):Conversation
Defined in: WAProto/index.d.ts:12647
Creates a new Conversation instance using the specified properties.
Parameters
properties?
Properties to set
Returns
Conversation instance
decode()
static
decode(reader
,length
?):Conversation
Defined in: WAProto/index.d.ts:12673
Decodes a Conversation 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
Conversation
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):Conversation
Defined in: WAProto/index.d.ts:12682
Decodes a Conversation message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
Conversation
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:12655
Encodes the specified Conversation message. Does not implicitly verify messages.
Parameters
message
Conversation 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:12663
Encodes the specified Conversation message, length delimited. Does not implicitly verify messages.
Parameters
message
Conversation message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):Conversation
Defined in: WAProto/index.d.ts:12696
Creates a Conversation message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
Conversation
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:12717
Gets the default type url for Conversation
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:12704
Creates a plain object from a Conversation message. Also converts values to other types if specified.
Parameters
message
Conversation
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:12689
Verifies a Conversation message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not