mirror of
https://github.com/danog/MadelineProto.git
synced 2024-12-14 19:46:56 +01:00
2.1 KiB
2.1 KiB
title | description |
---|---|
webPage | Describes web page preview |
Constructor: webPage
Describes web page preview
Attributes:
Name | Type | Required | Description |
---|---|---|---|
url | string | Yes | Original URL of link |
display_url | string | Yes | URL to display |
type | string | Yes | Type of web page: article, photo, audio, video, document, profile, app or something other |
site_name | string | Yes | Short name of the site (i.e. Google Docs or App Store) |
title | string | Yes | Title of the content |
description | string | Yes | Description of the content |
photo | photo | Yes | Image representing the content, nullable |
embed_url | string | Yes | Url to show embedded preview |
embed_type | string | Yes | MIME type of embedded preview, i.e. text/html or video/mp4 |
embed_width | int | Yes | Width of embedded preview |
embed_height | int | Yes | Height of embedded preview |
duration | int | Yes | Duration of the content in seconds |
author | string | Yes | Author of the content |
animation | animation | Yes | Preview as an Animation if available, nullable |
audio | audio | Yes | Preview as an Audio if available, nullable |
document | document | Yes | Preview as a Document if available (currently only for small pdf files and zip archives), nullable |
sticker | sticker | Yes | Preview as a Sticker for small .webp files if available, nullable |
video | video | Yes | Preview as a Video if available, nullable |
video_note | videoNote | Yes | Preview as a VideoNote if available, nullable |
voice | voice | Yes | Preview as a Voice if available, nullable |
has_instant_view | Bool | Yes | True if web page has instant view |