Class MsgOpaqueData

Represents a MsgOpaqueData.

Hierarchy

  • MsgOpaqueData

Implements

Constructors

Properties

body: string

MsgOpaqueData body.

botMessageSecret: Uint8Array

MsgOpaqueData botMessageSecret.

canonicalUrl: string

MsgOpaqueData canonicalUrl.

caption: string

MsgOpaqueData caption.

clientUrl: string

MsgOpaqueData clientUrl.

description: string

MsgOpaqueData description.

encIv: Uint8Array

MsgOpaqueData encIv.

encPayload: Uint8Array

MsgOpaqueData encPayload.

encPollVote?: null | proto.IPollEncValue

MsgOpaqueData encPollVote.

encReactionEncIv: Uint8Array

MsgOpaqueData encReactionEncIv.

encReactionEncPayload: Uint8Array

MsgOpaqueData encReactionEncPayload.

encReactionTargetMessageKey: string

MsgOpaqueData encReactionTargetMessageKey.

futureproofBuffer: Uint8Array

MsgOpaqueData futureproofBuffer.

isLive: boolean

MsgOpaqueData isLive.

isSentCagPollCreation: boolean

MsgOpaqueData isSentCagPollCreation.

lat: number

MsgOpaqueData lat.

lng: number

MsgOpaqueData lng.

loc: string

MsgOpaqueData loc.

matchedText: string

MsgOpaqueData matchedText.

messageSecret: Uint8Array

MsgOpaqueData messageSecret.

originalSelfAuthor: string

MsgOpaqueData originalSelfAuthor.

paymentAmount1000: number

MsgOpaqueData paymentAmount1000.

paymentNoteMsgBody: string

MsgOpaqueData paymentNoteMsgBody.

pollName: string

MsgOpaqueData pollName.

pollOptions: IPollOption[]

MsgOpaqueData pollOptions.

pollSelectableOptionsCount: number

MsgOpaqueData pollSelectableOptionsCount.

pollUpdateParentKey: string

MsgOpaqueData pollUpdateParentKey.

senderTimestampMs: number | Long

MsgOpaqueData senderTimestampMs.

targetMessageKey: string

MsgOpaqueData targetMessageKey.

title: string

MsgOpaqueData title.

Methods

  • Converts this MsgOpaqueData to JSON.

    Returns {
        [k: string]: any;
    }

    JSON object

    • [k: string]: any
  • Decodes a MsgOpaqueData 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 MsgOpaqueData

    MsgOpaqueData

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

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

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    Returns MsgOpaqueData

    MsgOpaqueData

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

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

    Parameters

    • message: IMsgOpaqueData

      MsgOpaqueData message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

    • message: IMsgOpaqueData

      MsgOpaqueData message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

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

      Plain object

      • [k: string]: any

    Returns MsgOpaqueData

    MsgOpaqueData

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

    Parameters

    • message: MsgOpaqueData

      MsgOpaqueData

    • Optional options: IConversionOptions

      Conversion options

    Returns {
        [k: string]: any;
    }

    Plain object

    • [k: string]: any
  • Verifies a MsgOpaqueData 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