messages.getWebPagePreview

Get preview of webpage

 Method schema is available as of layer 75. Switch »

Parameters

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

Result

MessageMedia

Possible errors

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.

Related pages

Styled text with message entities

How to create styled text with message entities