Inherits Object.
Options to be used for generation of a link preview.
Public Fields | |
| bool | is_disabled_ |
| True, if link preview must be disabled. | |
| string | url_ |
| URL to use for link preview. If empty, then the first URL found in the message text will be used. | |
| bool | force_small_media_ |
| True, if shown media preview must be small; ignored in secret chats or if the URL isn't explicitly specified. | |
| bool | force_large_media_ |
| True, if shown media preview must be large; ignored in secret chats or if the URL isn't explicitly specified. | |
| bool | show_above_text_ |
| 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. | |
Public Instance Methods | |
| linkPreviewOptions () | |
| linkPreviewOptions (bool is_disabled_, string const &url_, bool force_small_media_, bool force_large_media_, bool show_above_text_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
Public Instance Methods inherited from TlObject | |
| 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 = 1046590451 |
| Identifier uniquely determining a type of the object. | |
Options to be used for generation of a link preview.
| linkPreviewOptions | ( | bool | is_disabled_, |
| string const & | url_, | ||
| bool | force_small_media_, | ||
| bool | force_large_media_, | ||
| bool | show_above_text_ | ||
| ) |
Options to be used for generation of a link preview.
| [in] | is_disabled_ | True, if link preview must be disabled. |
| [in] | url_ | URL to use for link preview. If empty, then the first URL found in the message text will be used. |
| [in] | force_small_media_ | True, if shown media preview must be small; ignored in secret chats or if the URL isn't explicitly specified. |
| [in] | force_large_media_ | True, if shown media preview must be large; ignored in secret chats or if the URL isn't explicitly specified. |
| [in] | show_above_text_ | 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. |
|
finalvirtual |