ChatKtx.getMessageLink - libtd-ktx

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


libtd-ktx / kotlinx.telegram.extensions / ChatKtx / getMessageLink

getMessageLink

open suspend fun Chat.getMessageLink(messageId: 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

messageId - Identifier of the message.

Return TdApi.HttpUrl Contains an HTTP URL.