LinkPreview
Object Hierarchy:
Description:
public class LinkPreview :
Error
Content:
Properties:
- public string author { get; set construct; }
Author of the content
- public FormattedText description { get; set construct; }
Description of the content
- public string display_url { get; set construct; }
URL to display
- public bool has_large_media { get; set construct; }
True, if size of media in the preview can be changed
- public int32 instant_view_version { get; set construct; }
Version of instant view (currently, can be 1 or 2) for the web page; 0
if none
- public bool show_above_text { get; set construct; }
True, if the link preview must be shown above message text; otherwise,
the link preview must be shown below the message text
- public bool show_large_media { get; set construct; }
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
- public bool show_media_above_description { get; set construct; }
True, if media must be shown above link preview description;
otherwise, the media must be shown below the description
- public string site_name { get; set construct; }
Short name of the site (e.g., Google Docs, App Store)
- public bool skip_confirmation { get; set construct; }
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
- public string title { get; set construct; }
Title of the content
- public LinkPreviewType type_ { get; set construct; }
Type of the link preview
- public string url { get; set construct; }
Original URL of the link
Creation methods:
- public LinkPreview (string url, string display_url, string site_name, string title, FormattedText description, string author, LinkPreviewType type_, bool has_large_media, bool show_large_media, bool show_media_above_description, bool skip_confirmation, bool show_above_text, int32 instant_view_version)
Inherited Members:
All known members inherited from class TDLib.Error
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref