public static class TdApi.WebPage extends TdApi.Object
Modifier and Type | Field and Description |
---|---|
TdApi.Animation |
animation
Preview of the content as an animation, if available; may be null.
|
TdApi.Audio |
audio
Preview of the content as an audio file, if available; may be null.
|
java.lang.String |
author
Author of the content.
|
static int |
CONSTRUCTOR
Identifier uniquely determining type of the object.
|
TdApi.FormattedText |
description
Description of the content.
|
java.lang.String |
displayUrl
URL to display.
|
TdApi.Document |
document
Preview of the content as a document, if available; may be null.
|
int |
duration
Duration of the content, in seconds.
|
int |
embedHeight
Height of the embedded preview.
|
java.lang.String |
embedType
MIME type of the embedded preview, (e.g., text/html or video/mp4).
|
java.lang.String |
embedUrl
URL to show in the embedded preview.
|
int |
embedWidth
Width of the embedded preview.
|
int |
instantViewVersion
Version of instant view, available for the web page (currently, can be 1 or 2), 0 if none.
|
TdApi.Photo |
photo
Image representing the content; may be null.
|
java.lang.String |
siteName
Short name of the site (e.g., Google Docs, App Store).
|
TdApi.Sticker |
sticker
Preview of the content as a sticker for small WEBP files, if available; may be null.
|
java.lang.String |
title
Title of the content.
|
java.lang.String |
type
Type of the web page.
|
java.lang.String |
url
Original URL of the link.
|
TdApi.Video |
video
Preview of the content as a video, if available; may be null.
|
TdApi.VideoNote |
videoNote
Preview of the content as a video note, if available; may be null.
|
TdApi.VoiceNote |
voiceNote
Preview of the content as a voice note, if available; may be null.
|
Constructor and Description |
---|
WebPage()
Describes a web page preview.
|
WebPage(java.lang.String url,
java.lang.String displayUrl,
java.lang.String type,
java.lang.String siteName,
java.lang.String title,
TdApi.FormattedText description,
TdApi.Photo photo,
java.lang.String embedUrl,
java.lang.String embedType,
int embedWidth,
int embedHeight,
int duration,
java.lang.String author,
TdApi.Animation animation,
TdApi.Audio audio,
TdApi.Document document,
TdApi.Sticker sticker,
TdApi.Video video,
TdApi.VideoNote videoNote,
TdApi.VoiceNote voiceNote,
int instantViewVersion)
Describes a web page preview.
|
Modifier and Type | Method and Description |
---|---|
int |
getConstructor() |
toString
public java.lang.String url
public java.lang.String displayUrl
public java.lang.String type
public java.lang.String siteName
public java.lang.String title
public TdApi.FormattedText description
@Nullable public TdApi.Photo photo
public java.lang.String embedUrl
public java.lang.String embedType
public int embedWidth
public int embedHeight
public int duration
public java.lang.String author
@Nullable public TdApi.Animation animation
@Nullable public TdApi.Audio audio
@Nullable public TdApi.Document document
@Nullable public TdApi.Sticker sticker
@Nullable public TdApi.Video video
@Nullable public TdApi.VideoNote videoNote
@Nullable public TdApi.VoiceNote voiceNote
public int instantViewVersion
public static final int CONSTRUCTOR
public WebPage()
public WebPage(java.lang.String url, java.lang.String displayUrl, java.lang.String type, java.lang.String siteName, java.lang.String title, TdApi.FormattedText description, TdApi.Photo photo, java.lang.String embedUrl, java.lang.String embedType, int embedWidth, int embedHeight, int duration, java.lang.String author, TdApi.Animation animation, TdApi.Audio audio, TdApi.Document document, TdApi.Sticker sticker, TdApi.Video video, TdApi.VideoNote videoNote, TdApi.VoiceNote voiceNote, int instantViewVersion)
url
- Original URL of the link.displayUrl
- URL to display.type
- Type of the web page. Can be: article, photo, audio, video, document, profile, app, or something else.siteName
- Short name of the site (e.g., Google Docs, App Store).title
- Title of the content.description
- Description of the content.photo
- Image representing the content; may be null.embedUrl
- URL to show in the embedded preview.embedType
- MIME type of the embedded preview, (e.g., text/html or video/mp4).embedWidth
- Width of the embedded preview.embedHeight
- Height of the embedded preview.duration
- Duration of the content, in seconds.author
- Author of the content.animation
- Preview of the content as an animation, if available; may be null.audio
- Preview of the content as an audio file, if available; may be null.document
- Preview of the content as a document, if available; may be null.sticker
- Preview of the content as a sticker for small WEBP files, if available; may be null.video
- Preview of the content as a video, if available; may be null.videoNote
- Preview of the content as a video note, if available; may be null.voiceNote
- Preview of the content as a voice note, if available; may be null.instantViewVersion
- Version of instant view, available for the web page (currently, can be 1 or 2), 0 if none.public int getConstructor()
getConstructor
in class TdApi.Object