Represents a StickerMessage.

Hierarchy

  • StickerMessage

Implements

Constructors

Properties

contextInfo?: null | IContextInfo

StickerMessage contextInfo.

directPath: string

StickerMessage directPath.

fileEncSha256: Uint8Array

StickerMessage fileEncSha256.

fileLength: number | Long

StickerMessage fileLength.

fileSha256: Uint8Array

StickerMessage fileSha256.

firstFrameLength: number

StickerMessage firstFrameLength.

firstFrameSidecar: Uint8Array

StickerMessage firstFrameSidecar.

height: number

StickerMessage height.

isAnimated: boolean

StickerMessage isAnimated.

isAvatar: boolean

StickerMessage isAvatar.

mediaKey: Uint8Array

StickerMessage mediaKey.

mediaKeyTimestamp: number | Long

StickerMessage mediaKeyTimestamp.

mimetype: string

StickerMessage mimetype.

pngThumbnail: Uint8Array

StickerMessage pngThumbnail.

stickerSentTs: number | Long

StickerMessage stickerSentTs.

url: string

StickerMessage url.

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

  • 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