MadelineProtoDocs/old_docs/API_docs_v30/constructors/pageBlockEmbedPost.md
2020-06-16 17:50:25 +02: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 Post contents
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}