Constructor: webPage
Webpage preview
Attributes:
| Name | Type | Required | Description |
|---|---|---|---|
| has_large_media | Bool | Optional | Whether the size of the media in the preview can be changed. |
| video_cover_photo | Bool | Optional | Represents a custom video cover. |
| id | long | Yes | Preview ID |
| url | string | Yes | URL of previewed webpage |
| display_url | string | Yes | Webpage URL to be displayed to the user |
| hash | int | Yes | |
| type | string | Optional | Type of the web page. One of the following: - app- article- document- gif- photo- profile- telegram_album- 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_nft- telegram_stickerset- telegram_story- telegram_story_album- telegram_theme- telegram_user- telegram_videochat- telegram_voicechat- video |
| site_name | string | Optional | Short name of the site (e.g., Google Docs, App Store) |
| title | string | Optional | Title of the content |
| description | string | Optional | Content description |
| photo | Photo | Optional | Image representing the content |
| embed_url | string | Optional | URL to show in the embedded preview |
| embed_type | string | Optional | MIME type of the embedded preview, (e.g., text/html or video/mp4) |
| embed_width | int | Optional | Width of the embedded preview |
| embed_height | int | Optional | Height of the embedded preview |
| duration | int | Optional | Duration of the content, in seconds |
| author | string | Optional | Author of the content |
| document | Document | Optional | Preview of the content as a media file |
| cached_page | Page | Optional | Page contents in instant view format |
| attributes | Array of WebPageAttribute | Optional | Webpage attributes |
Type: WebPage
Example:
$webPage = ['_' => 'webPage', 'has_large_media' => Bool, 'video_cover_photo' => Bool, 'id' => long, 'url' => 'string', 'display_url' => 'string', 'hash' => int, 'type' => 'string', 'site_name' => 'string', 'title' => 'string', 'description' => 'string', 'photo' => Photo, 'embed_url' => 'string', 'embed_type' => 'string', 'embed_width' => int, 'embed_height' => int, 'duration' => int, 'author' => 'string', 'document' => Document, 'cached_page' => Page, 'attributes' => [WebPageAttribute, WebPageAttribute]];