libtd-ktx / kotlinx.telegram.extensions / ChatKtx / getPublicMessageLink
getPublicMessageLink
open suspend fun Chat.getPublicMessageLink(messageId: Long, forAlbum: Boolean): PublicMessageLink
Suspend function, which returns a public HTTPS link to a message. Available only for messages in supergroups and channels with a username.
Parameters
messageId - Identifier of the message.
forAlbum - Pass true if a link for a whole media album should be returned.
Return TdApi.PublicMessageLink Contains a public HTTPS link to a message in a supergroup or channel with a username.