Represents a ContextInfo.

Hierarchy

  • ContextInfo

Implements

Constructors

Properties

actionLink?: null | IActionLink

ContextInfo actionLink.

businessMessageForwardInfo?: null | IBusinessMessageForwardInfo

ContextInfo businessMessageForwardInfo.

conversionData: Uint8Array

ContextInfo conversionData.

conversionDelaySeconds: number

ContextInfo conversionDelaySeconds.

conversionSource: string

ContextInfo conversionSource.

disappearingMode?: null | IDisappearingMode

ContextInfo disappearingMode.

entryPointConversionApp: string

ContextInfo entryPointConversionApp.

entryPointConversionDelaySeconds: number

ContextInfo entryPointConversionDelaySeconds.

entryPointConversionSource: string

ContextInfo entryPointConversionSource.

ephemeralSettingTimestamp: number | Long

ContextInfo ephemeralSettingTimestamp.

ephemeralSharedSecret: Uint8Array

ContextInfo ephemeralSharedSecret.

expiration: number

ContextInfo expiration.

externalAdReply?: null | IExternalAdReplyInfo

ContextInfo externalAdReply.

forwardedNewsletterMessageInfo?: null | IForwardedNewsletterMessageInfo

ContextInfo forwardedNewsletterMessageInfo.

forwardingScore: number

ContextInfo forwardingScore.

groupMentions: IGroupMention[]

ContextInfo groupMentions.

groupSubject: string

ContextInfo groupSubject.

isForwarded: boolean

ContextInfo isForwarded.

isSampled: boolean

ContextInfo isSampled.

mentionedJid: string[]

ContextInfo mentionedJid.

parentGroupJid: string

ContextInfo parentGroupJid.

participant: string

ContextInfo participant.

placeholderKey?: null | proto.IMessageKey

ContextInfo placeholderKey.

quotedAd?: null | IAdReplyInfo

ContextInfo quotedAd.

quotedMessage?: null | IMessage

ContextInfo quotedMessage.

remoteJid: string

ContextInfo remoteJid.

stanzaId: string

ContextInfo stanzaId.

trustBannerAction: number

ContextInfo trustBannerAction.

trustBannerType: string

ContextInfo trustBannerType.

utm?: null | IUTMInfo

ContextInfo utm.

Methods

  • Converts this ContextInfo to JSON.

    Returns {
        [k: string]: any;
    }

    JSON object

    • [k: string]: any
  • Decodes a ContextInfo message from the specified reader or buffer.

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    • Optional 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

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

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    Returns ContextInfo

    ContextInfo

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

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

    Parameters

    • message: IContextInfo

      ContextInfo message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

    • message: IContextInfo

      ContextInfo message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

    • object: {
          [k: string]: any;
      }

      Plain object

      • [k: string]: any

    Returns ContextInfo

    ContextInfo

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

    Parameters

    • message: ContextInfo

      ContextInfo

    • Optional options: IConversionOptions

      Conversion options

    Returns {
        [k: string]: any;
    }

    Plain object

    • [k: string]: any
  • Verifies a ContextInfo message.

    Parameters

    • message: {
          [k: string]: any;
      }

      Plain object to verify

      • [k: string]: any

    Returns null | string

    null if valid, otherwise the reason why it is not

Generated using TypeDoc