haskell-tdlib-2.0.47.0
Safe HaskellSafe-Inferred
LanguageGHC2021

TD.Data.LinkPreviewOptions

Documentation

data LinkPreviewOptions Source #

Constructors

LinkPreviewOptions

Options to be used for generation of a link preview

Fields

  • is_disabled :: Maybe Bool

    True, if link preview must be disabled

  • url :: Maybe Text

    URL to use for link preview. If empty, then the first URL found in the message text will be used

  • force_small_media :: Maybe Bool

    True, if shown media preview must be small; ignored in secret chats or if the URL isn't explicitly specified

  • force_large_media :: Maybe Bool

    True, if shown media preview must be large; ignored in secret chats or if the URL isn't explicitly specified

  • show_above_text :: Maybe Bool

    True, if link preview must be shown above message text; otherwise, the link preview will be shown below the message text; ignored in secret chats