MadelineProto/docs/API_docs/constructors/pageBlockAnchor.md

45 lines
846 B
Markdown
Raw Normal View History

---
title: pageBlockAnchor
2017-08-25 15:05:53 +02:00
description: Invisible anchor on a page which can be used in a URL to open a page from the specified anchor
---
## Constructor: pageBlockAnchor
[Back to constructors index](index.md)
2017-08-25 15:05:53 +02:00
Invisible anchor on a page which can be used in a URL to open a page from the specified anchor
### Attributes:
2017-08-25 15:05:53 +02:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|name|[string](../types/string.md) | Yes|Name of the anchor|
### Type: [PageBlock](../types/PageBlock.md)
### Example:
```
2017-07-23 16:33:46 +02:00
$pageBlockAnchor = ['_' => 'pageBlockAnchor', 'name' => 'string'];
```
2017-07-23 16:11:02 +02:00
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
2017-07-23 16:33:46 +02:00
{"_": "pageBlockAnchor", "name": "string"}
2017-07-23 16:11:02 +02:00
```
Or, if you're into Lua:
```
2017-07-23 16:33:46 +02:00
pageBlockAnchor={_='pageBlockAnchor', name='string'}
```