Documentation - v0.27.0
    Preparing search index...

    Interface InputMediaWebpage

    A webpage to be sent

    interface InputMediaWebpage {
        caption?: InputText;
        required?: boolean;
        size?: "small" | "large";
        type: "webpage";
        url: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    caption?: InputText

    Caption of the media

    required?: boolean

    Whether the link must be present in the message for the preview to appear

    size?: "small" | "large"

    By default, size of the media in the preview is determined based on content type.

    You can override this behaviour by passing the wanted size here

    type: "webpage"
    url: string

    Webpage URL