Inherits Object.
Describes a link preview.
Public Fields | |
string | url_ |
Original URL of the link. | |
string | display_url_ |
URL to display. | |
string | site_name_ |
Short name of the site (e.g., Google Docs, App Store). | |
string | title_ |
Title of the content. | |
object_ptr< formattedText > | description_ |
Description of the content. | |
object_ptr< LinkPreviewType > | type_ |
Type of the link preview. | |
bool | has_large_media_ |
True, if size of media in the preview can be changed. | |
bool | show_large_media_ |
True, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame must be shown for videos. | |
bool | skip_confirmation_ |
True, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the URL is shown in the message text in clear. | |
bool | show_above_text_ |
True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text. | |
int32 | instant_view_version_ |
Version of instant view (currently, can be 1 or 2) for the web page; 0 if none. | |
Public Instance Methods | |
linkPreview () | |
linkPreview (string const &url_, string const &display_url_, string const &site_name_, string const &title_, object_ptr< formattedText > &&description_, object_ptr< LinkPreviewType > &&type_, bool has_large_media_, bool show_large_media_, bool skip_confirmation_, bool show_above_text_, int32 instant_view_version_) | |
void | store (TlStorerToString &s, const char *field_name) const final |
![]() | |
virtual void | store (TlStorerUnsafe &s) const |
virtual void | store (TlStorerCalcLength &s) const |
TlObject ()=default | |
TlObject (const TlObject &)=delete | |
TlObject & | operator= (const TlObject &)=delete |
TlObject (TlObject &&)=default | |
TlObject & | operator= (TlObject &&)=default |
virtual | ~TlObject ()=default |
Static Public Attributes | |
static const std::int32_t | ID = -740917523 |
Identifier uniquely determining a type of the object. | |
linkPreview | ( | ) |
Describes a link preview.
linkPreview | ( | string const & | url_, |
string const & | display_url_, | ||
string const & | site_name_, | ||
string const & | title_, | ||
object_ptr< formattedText > && | description_, | ||
object_ptr< LinkPreviewType > && | type_, | ||
bool | has_large_media_, | ||
bool | show_large_media_, | ||
bool | skip_confirmation_, | ||
bool | show_above_text_, | ||
int32 | instant_view_version_ | ||
) |
Describes a link preview.
[in] | url_ | Original URL of the link. |
[in] | display_url_ | URL to display. |
[in] | site_name_ | Short name of the site (e.g., Google Docs, App Store). |
[in] | title_ | Title of the content. |
[in] | description_ | Description of the content. |
[in] | type_ | Type of the link preview. |
[in] | has_large_media_ | True, if size of media in the preview can be changed. |
[in] | show_large_media_ | True, if large media preview must be shown; otherwise, the media preview must be shown small and only the first frame must be shown for videos. |
[in] | skip_confirmation_ | True, if there is no need to show an ordinary open URL confirmation, when opening the URL from the preview, because the URL is shown in the message text in clear. |
[in] | show_above_text_ | True, if the link preview must be shown above message text; otherwise, the link preview must be shown below the message text. |
[in] | instant_view_version_ | Version of instant view (currently, can be 1 or 2) for the web page; 0 if none. |
|
finalvirtual |