Class: HistorySync
Defined in: WAProto/index.d.ts:14386
Represents a HistorySync.
Implements
Constructors
new HistorySync()
new HistorySync(
properties
?):HistorySync
Defined in: WAProto/index.d.ts:14392
Constructs a new HistorySync.
Parameters
properties?
Properties to set
Returns
Properties
aiWaitListState?
optional
aiWaitListState:null
|BotAIWaitListState
Defined in: WAProto/index.d.ts:14431
HistorySync aiWaitListState.
Implementation of
callLogRecords
callLogRecords:
ICallLogRecord
[]
Defined in: WAProto/index.d.ts:14428
HistorySync callLogRecords.
Implementation of
chunkOrder?
optional
chunkOrder:null
|number
Defined in: WAProto/index.d.ts:14404
HistorySync chunkOrder.
Implementation of
companionMetaNonce?
optional
companionMetaNonce:null
|string
Defined in: WAProto/index.d.ts:14437
HistorySync companionMetaNonce.
Implementation of
IHistorySync
.companionMetaNonce
conversations
conversations:
IConversation
[]
Defined in: WAProto/index.d.ts:14398
HistorySync conversations.
Implementation of
globalSettings?
optional
globalSettings:null
|IGlobalSettings
Defined in: WAProto/index.d.ts:14413
HistorySync globalSettings.
Implementation of
pastParticipants
pastParticipants:
IPastParticipants
[]
Defined in: WAProto/index.d.ts:14425
HistorySync pastParticipants.
Implementation of
phoneNumberToLidMappings
phoneNumberToLidMappings:
IPhoneNumberToLIDMapping
[]
Defined in: WAProto/index.d.ts:14434
HistorySync phoneNumberToLidMappings.
Implementation of
IHistorySync
.phoneNumberToLidMappings
progress?
optional
progress:null
|number
Defined in: WAProto/index.d.ts:14407
HistorySync progress.
Implementation of
pushnames
pushnames:
IPushname
[]
Defined in: WAProto/index.d.ts:14410
HistorySync pushnames.
Implementation of
recentStickers
recentStickers:
IStickerMetadata
[]
Defined in: WAProto/index.d.ts:14422
HistorySync recentStickers.
Implementation of
shareableChatIdentifierEncryptionKey?
optional
shareableChatIdentifierEncryptionKey:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:14440
HistorySync shareableChatIdentifierEncryptionKey.
Implementation of
IHistorySync
.shareableChatIdentifierEncryptionKey
statusV3Messages
statusV3Messages:
IWebMessageInfo
[]
Defined in: WAProto/index.d.ts:14401
HistorySync statusV3Messages.
Implementation of
syncType
syncType:
HistorySyncType
Defined in: WAProto/index.d.ts:14395
HistorySync syncType.
Implementation of
threadDsTimeframeOffset?
optional
threadDsTimeframeOffset:null
|number
Defined in: WAProto/index.d.ts:14419
HistorySync threadDsTimeframeOffset.
Implementation of
IHistorySync
.threadDsTimeframeOffset
threadIdUserSecret?
optional
threadIdUserSecret:null
|Uint8Array
<ArrayBufferLike
>
Defined in: WAProto/index.d.ts:14416
HistorySync threadIdUserSecret.
Implementation of
IHistorySync
.threadIdUserSecret
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:14510
Converts this HistorySync to JSON.
Returns
object
JSON object
create()
static
create(properties
?):HistorySync
Defined in: WAProto/index.d.ts:14447
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:14473
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:14482
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:14455
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:14463
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:14496
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:14517
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:14504
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:14489
Verifies a HistorySync message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not