Represents a StickerMessage.

Hierarchy

  • StickerMessage

Implements

Constructors

Properties

accessibilityLabel?: null | string

StickerMessage accessibilityLabel.

contextInfo?: null | IContextInfo

StickerMessage contextInfo.

directPath?: null | string

StickerMessage directPath.

fileEncSha256?: null | Uint8Array

StickerMessage fileEncSha256.

fileLength?: null | number | Long

StickerMessage fileLength.

fileSha256?: null | Uint8Array

StickerMessage fileSha256.

firstFrameLength?: null | number

StickerMessage firstFrameLength.

firstFrameSidecar?: null | Uint8Array

StickerMessage firstFrameSidecar.

height?: null | number

StickerMessage height.

isAiSticker?: null | boolean

StickerMessage isAiSticker.

isAnimated?: null | boolean

StickerMessage isAnimated.

isAvatar?: null | boolean

StickerMessage isAvatar.

isLottie?: null | boolean

StickerMessage isLottie.

mediaKey?: null | Uint8Array

StickerMessage mediaKey.

mediaKeyTimestamp?: null | number | Long

StickerMessage mediaKeyTimestamp.

mimetype?: null | string

StickerMessage mimetype.

pngThumbnail?: null | Uint8Array

StickerMessage pngThumbnail.

stickerSentTs?: null | number | Long

StickerMessage stickerSentTs.

url?: null | string

StickerMessage url.

width?: null | number

StickerMessage width.

Methods

  • Converts this StickerMessage to JSON.

    Returns {
        [k: string]: any;
    }

    JSON object

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

    StickerMessage

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

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

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    Returns StickerMessage

    StickerMessage

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

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

    Parameters

    • message: IStickerMessage

      StickerMessage message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

    • message: IStickerMessage

      StickerMessage message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

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

      Plain object

      • [k: string]: any

    Returns StickerMessage

    StickerMessage

  • Gets the default type url for StickerMessage

    Parameters

    • Optional typeUrlPrefix: string

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

    Returns string

    The default type url

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

    Parameters

    • message: StickerMessage

      StickerMessage

    • Optional options: IConversionOptions

      Conversion options

    Returns {
        [k: string]: any;
    }

    Plain object

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