Skip to main content

Class: ContextInfo

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

Represents a ContextInfo.

Implements

Constructors

new ContextInfo()

new ContextInfo(properties?): ContextInfo

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

Constructs a new ContextInfo.

Parameters

properties?

IContextInfo

Properties to set

Returns

ContextInfo

Properties

optional actionLink: null | IActionLink

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

ContextInfo actionLink.

Implementation of

IContextInfo.actionLink


alwaysShowAdAttribution?

optional alwaysShowAdAttribution: null | boolean

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

ContextInfo alwaysShowAdAttribution.

Implementation of

IContextInfo.alwaysShowAdAttribution


businessMessageForwardInfo?

optional businessMessageForwardInfo: null | IBusinessMessageForwardInfo

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

ContextInfo businessMessageForwardInfo.

Implementation of

IContextInfo.businessMessageForwardInfo


conversionData?

optional conversionData: null | Uint8Array<ArrayBufferLike>

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

ContextInfo conversionData.

Implementation of

IContextInfo.conversionData


conversionDelaySeconds?

optional conversionDelaySeconds: null | number

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

ContextInfo conversionDelaySeconds.

Implementation of

IContextInfo.conversionDelaySeconds


conversionSource?

optional conversionSource: null | string

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

ContextInfo conversionSource.

Implementation of

IContextInfo.conversionSource


ctwaPayload?

optional ctwaPayload: null | Uint8Array<ArrayBufferLike>

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

ContextInfo ctwaPayload.

Implementation of

IContextInfo.ctwaPayload


ctwaSignals?

optional ctwaSignals: null | string

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

ContextInfo ctwaSignals.

Implementation of

IContextInfo.ctwaSignals


dataSharingContext?

optional dataSharingContext: null | IDataSharingContext

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

ContextInfo dataSharingContext.

Implementation of

IContextInfo.dataSharingContext


disappearingMode?

optional disappearingMode: null | IDisappearingMode

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

ContextInfo disappearingMode.

Implementation of

IContextInfo.disappearingMode


entryPointConversionApp?

optional entryPointConversionApp: null | string

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

ContextInfo entryPointConversionApp.

Implementation of

IContextInfo.entryPointConversionApp


entryPointConversionDelaySeconds?

optional entryPointConversionDelaySeconds: null | number

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

ContextInfo entryPointConversionDelaySeconds.

Implementation of

IContextInfo.entryPointConversionDelaySeconds


entryPointConversionExternalMedium?

optional entryPointConversionExternalMedium: null | string

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

ContextInfo entryPointConversionExternalMedium.

Implementation of

IContextInfo.entryPointConversionExternalMedium


entryPointConversionExternalSource?

optional entryPointConversionExternalSource: null | string

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

ContextInfo entryPointConversionExternalSource.

Implementation of

IContextInfo.entryPointConversionExternalSource


entryPointConversionSource?

optional entryPointConversionSource: null | string

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

ContextInfo entryPointConversionSource.

Implementation of

IContextInfo.entryPointConversionSource


ephemeralSettingTimestamp?

optional ephemeralSettingTimestamp: null | number | Long

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

ContextInfo ephemeralSettingTimestamp.

Implementation of

IContextInfo.ephemeralSettingTimestamp


ephemeralSharedSecret?

optional ephemeralSharedSecret: null | Uint8Array<ArrayBufferLike>

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

ContextInfo ephemeralSharedSecret.

Implementation of

IContextInfo.ephemeralSharedSecret


expiration?

optional expiration: null | number

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

ContextInfo expiration.

Implementation of

IContextInfo.expiration


externalAdReply?

optional externalAdReply: null | IExternalAdReplyInfo

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

ContextInfo externalAdReply.

Implementation of

IContextInfo.externalAdReply


featureEligibilities?

optional featureEligibilities: null | IFeatureEligibilities

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

ContextInfo featureEligibilities.

Implementation of

IContextInfo.featureEligibilities


forwardedAiBotMessageInfo?

optional forwardedAiBotMessageInfo: null | IForwardedAIBotMessageInfo

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

ContextInfo forwardedAiBotMessageInfo.

Implementation of

IContextInfo.forwardedAiBotMessageInfo


forwardedNewsletterMessageInfo?

optional forwardedNewsletterMessageInfo: null | IForwardedNewsletterMessageInfo

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

ContextInfo forwardedNewsletterMessageInfo.

Implementation of

IContextInfo.forwardedNewsletterMessageInfo


forwardingScore?

optional forwardingScore: null | number

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

ContextInfo forwardingScore.

Implementation of

IContextInfo.forwardingScore


groupMentions

groupMentions: IGroupMention[]

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

ContextInfo groupMentions.

Implementation of

IContextInfo.groupMentions


groupSubject?

optional groupSubject: null | string

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

ContextInfo groupSubject.

Implementation of

IContextInfo.groupSubject


isForwarded?

optional isForwarded: null | boolean

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

ContextInfo isForwarded.

Implementation of

IContextInfo.isForwarded


isSampled?

optional isSampled: null | boolean

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

ContextInfo isSampled.

Implementation of

IContextInfo.isSampled


mentionedJid

mentionedJid: string[]

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

ContextInfo mentionedJid.

Implementation of

IContextInfo.mentionedJid


pairedMediaType?

optional pairedMediaType: null | PairedMediaType

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

ContextInfo pairedMediaType.

Implementation of

IContextInfo.pairedMediaType


parentGroupJid?

optional parentGroupJid: null | string

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

ContextInfo parentGroupJid.

Implementation of

IContextInfo.parentGroupJid


participant?

optional participant: null | string

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

ContextInfo participant.

Implementation of

IContextInfo.participant


placeholderKey?

optional placeholderKey: null | IMessageKey

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

ContextInfo placeholderKey.

Implementation of

IContextInfo.placeholderKey


quotedAd?

optional quotedAd: null | IAdReplyInfo

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

ContextInfo quotedAd.

Implementation of

IContextInfo.quotedAd


quotedMessage?

optional quotedMessage: null | IMessage

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

ContextInfo quotedMessage.

Implementation of

IContextInfo.quotedMessage


rankingVersion?

optional rankingVersion: null | number

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

ContextInfo rankingVersion.

Implementation of

IContextInfo.rankingVersion


remoteJid?

optional remoteJid: null | string

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

ContextInfo remoteJid.

Implementation of

IContextInfo.remoteJid


smbClientCampaignId?

optional smbClientCampaignId: null | string

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

ContextInfo smbClientCampaignId.

Implementation of

IContextInfo.smbClientCampaignId


smbServerCampaignId?

optional smbServerCampaignId: null | string

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

ContextInfo smbServerCampaignId.

Implementation of

IContextInfo.smbServerCampaignId


stanzaId?

optional stanzaId: null | string

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

ContextInfo stanzaId.

Implementation of

IContextInfo.stanzaId


statusAttributionType?

optional statusAttributionType: null | StatusAttributionType

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

ContextInfo statusAttributionType.

Implementation of

IContextInfo.statusAttributionType


trustBannerAction?

optional trustBannerAction: null | number

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

ContextInfo trustBannerAction.

Implementation of

IContextInfo.trustBannerAction


trustBannerType?

optional trustBannerType: null | string

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

ContextInfo trustBannerType.

Implementation of

IContextInfo.trustBannerType


urlTrackingMap?

optional urlTrackingMap: null | IUrlTrackingMap

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

ContextInfo urlTrackingMap.

Implementation of

IContextInfo.urlTrackingMap


utm?

optional utm: null | IUTMInfo

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

ContextInfo utm.

Implementation of

IContextInfo.utm

Methods

toJSON()

toJSON(): object

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

Converts this ContextInfo to JSON.

Returns

object

JSON object


create()

static create(properties?): ContextInfo

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

Creates a new ContextInfo instance using the specified properties.

Parameters

properties?

IContextInfo

Properties to set

Returns

ContextInfo

ContextInfo instance


decode()

static decode(reader, length?): ContextInfo

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

Decodes a ContextInfo 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

ContextInfo

ContextInfo

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): ContextInfo

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

ContextInfo

ContextInfo

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:9676

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

Parameters

message

IContextInfo

ContextInfo 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:9684

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

Parameters

message

IContextInfo

ContextInfo message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): ContextInfo

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

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

Parameters

object

Plain object

Returns

ContextInfo

ContextInfo


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for ContextInfo

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:9725

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

Parameters

message

ContextInfo

ContextInfo

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a ContextInfo message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not