WebPage class

Describes a web page preview

Inheritance

Constructors

WebPage({String? extra, int? client_id, string? url, string? display_url, string? type, string? site_name, string? title, FormattedText? description, Photo? photo, string? embed_url, string? embed_type, int32? embed_width, int32? embed_height, int32? duration, string? author, Animation? animation, Audio? audio, Document? document, Sticker? sticker, Video? video, VideoNote? video_note, VoiceNote? voice_note, int32? instant_view_version})
WebPage.fromMap(Map<String, dynamic> map)

Properties

animation Animation?
Preview of the content as an animation, if available; may be null
getter/setter pair
audio Audio?
Preview of the content as an audio file, if available; may be null
getter/setter pair
author string?
Author of the content
getter/setter pair
client_id int?
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
description FormattedText?
getter/setter pair
display_url string?
URL to display
getter/setter pair
document Document?
Preview of the content as a document, if available; may be null
getter/setter pair
duration int32?
Duration of the content, in seconds
getter/setter pair
embed_height int32?
Height of the embedded preview
getter/setter pair
embed_type string?
MIME type of the embedded preview, (e.g., text/html or video/mp4)
getter/setter pair
embed_url string?
URL to show in the embedded preview
getter/setter pair
embed_width int32?
Width of the embedded preview
getter/setter pair
extra String?
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
instant_view_version int32?
Version of web page instant view (currently, can be 1 or 2); 0 if none
getter/setter pair
photo Photo?
Image representing the content; may be null
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
site_name string?
Short name of the site (e.g., Google Docs, App Store)
getter/setter pair
sticker Sticker?
Preview of the content as a sticker for small WEBP files, if available; may be null
getter/setter pair
tdType String
JSON object type; maps to the field @type.
no setteroverride
title string?
Title of the content
getter/setter pair
type string?
Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else
getter/setter pair
url string?
Original URL of the link
getter/setter pair
video Video?
Preview of the content as a video, if available; may be null
getter/setter pair
video_note VideoNote?
Preview of the content as a video note, if available; may be null
getter/setter pair
voice_note VoiceNote?
Preview of the content as a voice note, if available; may be null
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson({dynamic skipNulls = true}) String
Serialize a Td instance to a JSON string. If skipNulls is true the fields with null values are not serialized.
inherited
toMap({dynamic skipNulls = true}) Map<String, dynamic>
Create a Map from a Td instance.
override
toString({dynamic skipNulls = false}) String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited