MadelineProtoDocs/old_docs/API_docs_v71/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 Yes Block width, if known
h int Yes Block height, if known
caption RichText 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' => RichText];

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=RichText}