disabled property
LinkPreviewOptions
get
disabled
Returns a LinkPreviewOptions instance with link preview disabled.
This is a convenience getter that provides a pre-configured instance with
isDisabled
set to true, which will disable link previews when used.
Example usage:
// Disable link previews in a message
bot.api.sendMessage(
chatId,
'Check this link: https://example.com',
linkPreviewOptions: LinkPreviewOptions.disabled,
);
Implementation
static LinkPreviewOptions get disabled =>
_LinkPreviewOptions(isDisabled: true);