MadelineProtoDocs/old_docs/API_docs_v89/constructors/pageBlockEmbed.md
2019-12-27 17:48:04 +01:00

1.4 KiB

title description image
pageBlockEmbed An embedded webpage https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: pageBlockEmbed

Back to constructors index

An embedded webpage

Attributes:

Name Type Required Description
full_width Bool Optional Whether the block should be full width
allow_scrolling Bool Optional Whether scrolling should be allowed
url string Optional Web page URL, if available
html string Optional HTML-markup of the embedded page
poster_photo_id long Optional Poster photo, if available
w int Optional Block width, if known
h int Optional Block height, if known
caption PageCaption Yes Caption

Type: PageBlock

Example:

$pageBlockEmbed = ['_' => 'pageBlockEmbed', 'full_width' => Bool, 'allow_scrolling' => Bool, 'url' => 'string', 'html' => 'string', 'poster_photo_id' => long, 'w' => int, 'h' => int, 'caption' => PageCaption];

Or, if you're into Lua:

pageBlockEmbed={_='pageBlockEmbed', full_width=Bool, allow_scrolling=Bool, url='string', html='string', poster_photo_id=long, w=int, h=int, caption=PageCaption}