Documentation - v0.27.0
    Preparing search index...

    Interface InputMediaSticker

    A sticker to be sent

    interface InputMediaSticker {
        alt?: string;
        caption?: InputText;
        file: InputFileLike;
        fileMime?: string;
        fileName?: string;
        fileSize?: number;
        isAnimated?: boolean;
        ttlSeconds?: number;
        type: "sticker";
    }

    Hierarchy (View Summary)

    Index

    Properties

    alt?: string

    An emoji representing this sticker

    Only applicable to newly uploaded files, for some reason doesn't work with animated stickers.

    caption?: InputText

    Caption of the media

    File to be sent

    fileMime?: string

    Override MIME type for the file

    Only applicable to newly uploaded files.

    fileName?: string

    Override file name for the file.

    Only applicable to newly uploaded files.

    fileSize?: number

    Override file size for the file

    Only applicable to newly uploaded files.

    isAnimated?: boolean

    Whether this sticker is animated?

    Note that animated stickers must be in TGS format, which is Lottie JSON compressed using GZip

    Only applicable to newly uploaded files.

    false
    
    ttlSeconds?: number

    TTL for the media in seconds.

    Only applicable to some media types

    type: "sticker"