Represents an ExtendedTextMessage.

Hierarchy

  • ExtendedTextMessage

Implements

Constructors

Properties

backgroundArgb: number

ExtendedTextMessage backgroundArgb.

canonicalUrl: string

ExtendedTextMessage canonicalUrl.

contextInfo?: null | IContextInfo

ExtendedTextMessage contextInfo.

description: string

ExtendedTextMessage description.

doNotPlayInline: boolean

ExtendedTextMessage doNotPlayInline.

font: FontType

ExtendedTextMessage font.

inviteLinkGroupType: InviteLinkGroupType

ExtendedTextMessage inviteLinkGroupType.

inviteLinkGroupTypeV2: InviteLinkGroupType

ExtendedTextMessage inviteLinkGroupTypeV2.

inviteLinkParentGroupSubjectV2: string

ExtendedTextMessage inviteLinkParentGroupSubjectV2.

inviteLinkParentGroupThumbnailV2: Uint8Array

ExtendedTextMessage inviteLinkParentGroupThumbnailV2.

jpegThumbnail: Uint8Array

ExtendedTextMessage jpegThumbnail.

matchedText: string

ExtendedTextMessage matchedText.

mediaKey: Uint8Array

ExtendedTextMessage mediaKey.

mediaKeyTimestamp: number | Long

ExtendedTextMessage mediaKeyTimestamp.

previewType: PreviewType

ExtendedTextMessage previewType.

text: string

ExtendedTextMessage text.

textArgb: number

ExtendedTextMessage textArgb.

thumbnailDirectPath: string

ExtendedTextMessage thumbnailDirectPath.

thumbnailEncSha256: Uint8Array

ExtendedTextMessage thumbnailEncSha256.

thumbnailHeight: number

ExtendedTextMessage thumbnailHeight.

thumbnailSha256: Uint8Array

ExtendedTextMessage thumbnailSha256.

thumbnailWidth: number

ExtendedTextMessage thumbnailWidth.

title: string

ExtendedTextMessage title.

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

  • 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