getMessageLink - libtd-ktx

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


libtd-ktx / kotlinx.telegram.coroutines / getMessageLink

getMessageLink

suspend fun TelegramFlow.getMessageLink(chatId: Long, 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

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

messageId - Identifier of the message.

Return HttpUrl Contains an HTTP URL.