Interface InputMediaWebpage

A webpage to be sent

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

Hierarchy (view full)

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