libtd-ktx / kotlinx.telegram.extensions / MessageKtx / getPublicLink
getPublicLink
open suspend fun
Message
.getPublicLink(chatId:
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
chatId
- Identifier of the chat to which the message belongs.
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.