Class StickerMetadata

Represents a StickerMetadata.

Hierarchy

  • StickerMetadata

Implements

Constructors

Properties

directPath: string

StickerMetadata directPath.

fileEncSha256: Uint8Array

StickerMetadata fileEncSha256.

fileLength: number | Long

StickerMetadata fileLength.

fileSha256: Uint8Array

StickerMetadata fileSha256.

height: number

StickerMetadata height.

lastStickerSentTs: number | Long

StickerMetadata lastStickerSentTs.

mediaKey: Uint8Array

StickerMetadata mediaKey.

mimetype: string

StickerMetadata mimetype.

url: string

StickerMetadata url.

weight: number

StickerMetadata weight.

width: number

StickerMetadata width.

Methods

  • Converts this StickerMetadata to JSON.

    Returns {
        [k: string]: any;
    }

    JSON object

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

    StickerMetadata

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

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

    Parameters

    • reader: Uint8Array | Reader

      Reader or buffer to decode from

    Returns StickerMetadata

    StickerMetadata

    Throws

    If the payload is not a reader or valid buffer

    Throws

    If required fields are missing

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

    Parameters

    • message: IStickerMetadata

      StickerMetadata message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

    • message: IStickerMetadata

      StickerMetadata message or plain object to encode

    • Optional writer: Writer

      Writer to encode to

    Returns Writer

    Writer

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

    Parameters

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

      Plain object

      • [k: string]: any

    Returns StickerMetadata

    StickerMetadata

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

    Parameters

    • message: StickerMetadata

      StickerMetadata

    • Optional options: IConversionOptions

      Conversion options

    Returns {
        [k: string]: any;
    }

    Plain object

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