Represents an ExtendedTextMessage.

Hierarchy

  • ExtendedTextMessage

Implements

Constructors

Properties

backgroundArgb?: null | number

ExtendedTextMessage backgroundArgb.

contextInfo?: null | IContextInfo

ExtendedTextMessage contextInfo.

description?: null | string

ExtendedTextMessage description.

doNotPlayInline?: null | boolean

ExtendedTextMessage doNotPlayInline.

faviconMMSMetadata?: null | IMMSThumbnailMetadata

ExtendedTextMessage faviconMMSMetadata.

font?: null | FontType

ExtendedTextMessage font.

inviteLinkGroupType?: null | InviteLinkGroupType

ExtendedTextMessage inviteLinkGroupType.

inviteLinkGroupTypeV2?: null | InviteLinkGroupType

ExtendedTextMessage inviteLinkGroupTypeV2.

inviteLinkParentGroupSubjectV2?: null | string

ExtendedTextMessage inviteLinkParentGroupSubjectV2.

inviteLinkParentGroupThumbnailV2?: null | Uint8Array

ExtendedTextMessage inviteLinkParentGroupThumbnailV2.

jpegThumbnail?: null | Uint8Array

ExtendedTextMessage jpegThumbnail.

matchedText?: null | string

ExtendedTextMessage matchedText.

mediaKey?: null | Uint8Array

ExtendedTextMessage mediaKey.

mediaKeyTimestamp?: null | number | Long

ExtendedTextMessage mediaKeyTimestamp.

previewType?: null | PreviewType

ExtendedTextMessage previewType.

text?: null | string

ExtendedTextMessage text.

textArgb?: null | number

ExtendedTextMessage textArgb.

thumbnailDirectPath?: null | string

ExtendedTextMessage thumbnailDirectPath.

thumbnailEncSha256?: null | Uint8Array

ExtendedTextMessage thumbnailEncSha256.

thumbnailHeight?: null | number

ExtendedTextMessage thumbnailHeight.

thumbnailSha256?: null | Uint8Array

ExtendedTextMessage thumbnailSha256.

thumbnailWidth?: null | number

ExtendedTextMessage thumbnailWidth.

title?: null | string

ExtendedTextMessage title.

videoHeight?: null | number

ExtendedTextMessage videoHeight.

videoWidth?: null | number

ExtendedTextMessage videoWidth.

viewOnce?: null | boolean

ExtendedTextMessage viewOnce.

Methods

  • Converts this ExtendedTextMessage to JSON.

    Returns {
        [k: string]: any;
    }

    JSON object

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

    ExtendedTextMessage

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

  • Decodes an ExtendedTextMessage message from the specified reader or buffer, length delimited.

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    Returns ExtendedTextMessage

    ExtendedTextMessage

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

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

    Parameters

    • message: IExtendedTextMessage

      ExtendedTextMessage message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

    • message: IExtendedTextMessage

      ExtendedTextMessage message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

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

      Plain object

      • [k: string]: any

    Returns ExtendedTextMessage

    ExtendedTextMessage

  • Gets the default type url for ExtendedTextMessage

    Parameters

    • Optional typeUrlPrefix: string

      your custom typeUrlPrefix(default "type.googleapis.com")

    Returns string

    The default type url

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

    Parameters

    • message: ExtendedTextMessage

      ExtendedTextMessage

    • Optional options: IConversionOptions

      Conversion options

    Returns {
        [k: string]: any;
    }

    Plain object

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