getWebPagePreview - libtd-ktx

Kotlin Coroutines extensions for Telegram API TDLib (Telegram Database library)


libtd-ktx / kotlinx.telegram.coroutines / getWebPagePreview

getWebPagePreview

suspend fun TelegramFlow.getWebPagePreview(text: FormattedText?): WebPage

Suspend function, which returns a web page preview by the text of the message. Do not call this function too often. Returns a 404 error if the web page has no preview.

Parameters

text - Message text with formatting.

Return WebPage Describes a web page preview.