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

1.3 KiB

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

Constructor: pageBlockEmbedPost

Back to constructors index

An embedded post

Attributes:

Name Type Required Description
url string Yes Web page URL
webpage_id long Yes ID of generated webpage preview
author_photo_id long Yes ID of the author's photo
author string Yes Author name
date int Yes Creation date
blocks Array of PageBlock Yes Blocks
caption RichText Yes Caption

Type: PageBlock

Example:

$pageBlockEmbedPost = ['_' => 'pageBlockEmbedPost', 'url' => 'string', 'webpage_id' => long, 'author_photo_id' => long, 'author' => 'string', 'date' => int, 'blocks' => [PageBlock, PageBlock], 'caption' => RichText];

Or, if you're into Lua:

pageBlockEmbedPost={_='pageBlockEmbedPost', url='string', webpage_id=long, author_photo_id=long, author='string', date=int, blocks={PageBlock}, caption=RichText}