2019-06-23 13:07:51 +02:00
|
|
|
---
|
|
|
|
title: pageRelatedArticle
|
2019-12-27 17:48:04 +01:00
|
|
|
description: Related article
|
2019-06-23 13:07:51 +02:00
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: pageRelatedArticle
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-12-27 17:48:04 +01:00
|
|
|
Related article
|
2019-06-23 13:07:51 +02:00
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
2019-12-27 17:48:04 +01:00
|
|
|
|url|[string](../types/string.md) | Yes|URL of article|
|
|
|
|
|webpage\_id|[long](../types/long.md) | Yes|Webpage ID of generated IV preview|
|
2019-06-23 13:07:51 +02:00
|
|
|
|title|[string](../types/string.md) | Optional|Title|
|
|
|
|
|description|[string](../types/string.md) | Optional|Description|
|
2019-12-27 17:48:04 +01:00
|
|
|
|photo\_id|[long](../types/long.md) | Optional|ID of preview photo|
|
|
|
|
|author|[string](../types/string.md) | Optional|Author name|
|
|
|
|
|published\_date|[int](../types/int.md) | Optional|Date of pubblication|
|
2019-06-23 13:07:51 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [PageRelatedArticle](../types/PageRelatedArticle.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$pageRelatedArticle = ['_' => 'pageRelatedArticle', 'url' => 'string', 'webpage_id' => long, 'title' => 'string', 'description' => 'string', 'photo_id' => long, 'author' => 'string', 'published_date' => int];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
pageRelatedArticle={_='pageRelatedArticle', url='string', webpage_id=long, title='string', description='string', photo_id=long, author='string', published_date=int}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|