MessageKtx.getLink - libtd-ktx

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


libtd-ktx / kotlinx.telegram.extensions / MessageKtx / getLink

getLink

open suspend fun Message.getLink(chatId: Long): HttpUrl

Suspend function, which returns a private HTTPS link to a message in a chat. Available only for already sent messages in supergroups and channels. The link will work only for members of the chat.

Parameters

chatId - Identifier of the chat to which the message belongs.

Return TdApi.HttpUrl Contains an HTTP URL.