webPage
Webpage preview
type tg.WebPage struct { /* ... */ }
Implements WebPage.
Fields
| Name | Type | Required | Description |
|---|---|---|---|
HasLargeMedia | bool | — | Whether the size of the media in the preview can be changed. |
VideoCoverPhoto | bool | — | Represents a custom video cover. |
ID | int64 | yes | Preview ID |
URL | string | yes | URL of previewed webpage |
DisplayURL | string | yes | Webpage URL to be displayed to the user |
Hash | int | yes | Hash used for caching, for more info click here |
Type | string | — | Type of the web page. One of the following: - app- article- document- gif- photo- profile- telegram_album- telegram_auction- telegram_background- telegram_bot- telegram_botapp- telegram_call- telegram_channel- telegram_channel_boost- telegram_channel_direct- telegram_channel_request- telegram_chat- telegram_chat_request- telegram_chatlist- telegram_collection- telegram_community- telegram_giftcode- telegram_group_boost- telegram_livestream- telegram_megagroup- telegram_megagroup_request- telegram_message- telegram_newbot- telegram_nft- telegram_stickerset- telegram_story- telegram_story_album- telegram_theme- telegram_user- telegram_videochat- telegram_voicechat- video |
SiteName | string | — | Short name of the site (e.g., Google Docs, App Store) |
Title | string | — | Title of the content |
Description | string | — | Content description |
Photo | PhotoClass | — | Image representing the content |
EmbedURL | string | — | URL to show in the embedded preview |
EmbedType | string | — | MIME type of the embedded preview, (e.g., text/html or video/mp4) |
EmbedWidth | int | — | Width of the embedded preview |
EmbedHeight | int | — | Height of the embedded preview |
Duration | int | — | Duration of the content, in seconds |
Author | string | — | Author of the content |
Document | DocumentClass | — | Preview of the content as a media file |
CachedPage | Page | — | Page contents in instant view format |
Attributes | []WebPageAttributeClass | — | Webpage attributes |
References
- Official documentation
- Generated Go reference
- TL definition:
webPage#e89c45b2