LinkPreviewOptions#
- class pyrogram.types.LinkPreviewOptions#
Describes the options used for link preview generation.
- Parameters:
is_disabled (
bool
, optional) – True, if the link preview is disabledurl (
str
, optional) – URL to use for the link preview. If empty, then the first URL found in the message text will be usedprefer_small_media (
bool
, optional) – True, if the media in the link preview is suppposed to be shrunk; ignored if the URL isn’t explicitly specified or media size change isn’t supported for the previewprefer_large_media (
bool
, optional) – True, if the media in the link preview is suppposed to be enlarged; ignored if the URL isn’t explicitly specified or media size change isn’t supported for the previewshow_above_text (
bool
, optional) – True, if the link preview must be shown above the message text; otherwise, the link preview will be shown below the message textmanual (
bool
, optional)safe (
bool
, optional)