# LinkPreviewOptions

Source: https://core.telegram.org/bots/api#linkpreviewoptions

[Documentation index](../llms.txt)

Describes the options used for link preview generation.

| Field | Type | Description |
| --- | --- | --- |
| is\_disabled | Boolean | *Optional*. *True*, if the link preview is disabled |
| url | String | *Optional*. URL to use for the link preview. If empty, then the first URL found in the message text will be used. |
| prefer\_small\_media | Boolean | *Optional*. *True*, if the media in the link preview is supposed to be shrunk; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview |
| prefer\_large\_media | Boolean | *Optional*. *True*, if the media in the link preview is supposed to be enlarged; ignored if the URL isn't explicitly specified or media size change isn't supported for the preview |
| show\_above\_text | Boolean | *Optional*. *True*, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message text |
