Get preview of webpage
Method schema is available as of layer 75. Switch »
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| message | string | Message from which to extract the preview |
| entities | flags.3?Vector<MessageEntity> | Message entities for styled text |
| Code | Type | Description |
|---|---|---|
| 400 | ENTITY_BOUNDS_INVALID | A specified entity offset or length is invalid, see here » for info on how to properly compute the entity offset/length. |
| 400 | MESSAGE_EMPTY | The provided message is empty. |
How to create styled text with message entities