MadelineProtoDocs/old_docs/API_docs_v109/constructors/pageBlockEmbedPost.md
2020-03-06 12:24:14 +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 PageCaption Yes Caption

Type: PageBlock

Example:

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

Or, if you're into Lua:

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