Class: HistorySync
Defined in: WAProto/index.d.ts:15818
Represents a HistorySync.
Implements
Constructors
new HistorySync()
new HistorySync(
properties
?):HistorySync
Defined in: WAProto/index.d.ts:15824
Constructs a new HistorySync.
Parameters
properties?
Properties to set
Returns
Properties
accounts
accounts:
IAccount
[]
Defined in: WAProto/index.d.ts:15875
HistorySync accounts.
Implementation of
aiWaitListState?
optional
aiWaitListState:null
|BotAIWaitListState
Defined in: WAProto/index.d.ts:15863
HistorySync aiWaitListState.
Implementation of
callLogRecords
callLogRecords:
ICallLogRecord
[]
Defined in: WAProto/index.d.ts:15860
HistorySync callLogRecords.
Implementation of
chunkOrder?
optional
chunkOrder:null
|number
Defined in: WAProto/index.d.ts:15836
HistorySync chunkOrder.
Implementation of
companionMetaNonce?
optional
companionMetaNonce:null
|string
Defined in: WAProto/index.d.ts:15869
HistorySync companionMetaNonce.
Implementation of
IHistorySync
.companionMetaNonce
conversations
conversations:
IConversation
[]
Defined in: WAProto/index.d.ts:15830
HistorySync conversations.
Implementation of
globalSettings?
optional
globalSettings:null
|IGlobalSettings
Defined in: WAProto/index.d.ts:15845
HistorySync globalSettings.
Implementation of
pastParticipants
pastParticipants:
IPastParticipants
[]
Defined in: WAProto/index.d.ts:15857
HistorySync pastParticipants.
Implementation of
phoneNumberToLidMappings
phoneNumberToLidMappings:
IPhoneNumberToLIDMapping
[]
Defined in: WAProto/index.d.ts:15866
HistorySync phoneNumberToLidMappings.
Implementation of
IHistorySync
.phoneNumberToLidMappings
progress?
optional
progress:null
|number
Defined in: WAProto/index.d.ts:15839
HistorySync progress.
Implementation of
pushnames
pushnames:
IPushname
[]
Defined in: WAProto/index.d.ts:15842
HistorySync pushnames.
Implementation of
recentStickers
recentStickers:
IStickerMetadata
[]
Defined in: WAProto/index.d.ts:15854
HistorySync recentStickers.
Implementation of
shareableChatIdentifierEncryptionKey?
optional
shareableChatIdentifierEncryptionKey:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:15872
HistorySync shareableChatIdentifierEncryptionKey.
Implementation of
IHistorySync
.shareableChatIdentifierEncryptionKey
statusV3Messages
statusV3Messages:
IWebMessageInfo
[]
Defined in: WAProto/index.d.ts:15833
HistorySync statusV3Messages.
Implementation of
syncType
syncType:
HistorySyncType
Defined in: WAProto/index.d.ts:15827
HistorySync syncType.
Implementation of
threadDsTimeframeOffset?
optional
threadDsTimeframeOffset:null
|number
Defined in: WAProto/index.d.ts:15851
HistorySync threadDsTimeframeOffset.
Implementation of
IHistorySync
.threadDsTimeframeOffset
threadIdUserSecret?
optional
threadIdUserSecret:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:15848
HistorySync threadIdUserSecret.
Implementation of
IHistorySync
.threadIdUserSecret
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:15945
Converts this HistorySync to JSON.
Returns
object
JSON object
create()
static
create(properties
?):HistorySync
Defined in: WAProto/index.d.ts:15882
Creates a new HistorySync instance using the specified properties.
Parameters
properties?
Properties to set
Returns
HistorySync instance
decode()
static
decode(reader
,length
?):HistorySync
Defined in: WAProto/index.d.ts:15908
Decodes a HistorySync 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
HistorySync
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):HistorySync
Defined in: WAProto/index.d.ts:15917
Decodes a HistorySync message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
HistorySync
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:15890
Encodes the specified HistorySync message. Does not implicitly verify messages.
Parameters
message
HistorySync 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:15898
Encodes the specified HistorySync message, length delimited. Does not implicitly verify messages.
Parameters
message
HistorySync message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):HistorySync
Defined in: WAProto/index.d.ts:15931
Creates a HistorySync message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
HistorySync
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:15952
Gets the default type url for HistorySync
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:15939
Creates a plain object from a HistorySync message. Also converts values to other types if specified.
Parameters
message
HistorySync
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:15924
Verifies a HistorySync message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not