pub struct WebPage {Show 21 fields
pub url: String,
pub display_url: String,
pub type_: String,
pub site_name: String,
pub title: String,
pub description: String,
pub photo: Option<Photo>,
pub embed_url: String,
pub embed_type: String,
pub embed_width: i32,
pub embed_height: i32,
pub duration: i32,
pub author: String,
pub animation: Option<Animation>,
pub audio: Option<Audio>,
pub document: Option<Document>,
pub sticker: Option<Sticker>,
pub video: Option<Video>,
pub video_note: Option<VideoNote>,
pub voice_note: Option<VoiceNote>,
pub has_instant_view: bool,
}
Expand description
Describes a web page preview
Fields§
§url: String
Original URL of the link
display_url: String
URL to display
type_: String
Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else
site_name: String
Short name of the site (e.g., Google Docs, App Store)
title: String
Title of the content
description: String
Description of the content
photo: Option<Photo>
Image representing the content; may be null
embed_url: String
URL to show in the embedded preview
embed_type: String
MIME type of the embedded preview, (e.g., text/html or video/mp4)
embed_width: i32
Width of the embedded preview
embed_height: i32
Height of the embedded preview
duration: i32
Duration of the content, in seconds
Author of the content
animation: Option<Animation>
Preview of the content as an animation, if available; may be null
audio: Option<Audio>
Preview of the content as an audio file, if available; may be null
document: Option<Document>
Preview of the content as a document, if available (currently only available for small PDF files and ZIP archives); may be null
sticker: Option<Sticker>
Preview of the content as a sticker for small WEBP files, if available; may be null
video: Option<Video>
Preview of the content as a video, if available; may be null
video_note: Option<VideoNote>
Preview of the content as a video note, if available; may be null
voice_note: Option<VoiceNote>
Preview of the content as a voice note, if available; may be null
has_instant_view: bool
True, if the web page has an instant view