libtd-ktx / kotlinx.telegram.coroutines / getPublicMessageLink
getPublicMessageLink
suspend fun
TelegramFlow
.getPublicMessageLink(chatId:
Long
, 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
chatId
- Identifier of the chat to which the message belongs.
messageId
- Identifier of the message.
forAlbum
- Pass true if a link for a whole media album should be returned.
Return PublicMessageLink Contains a public HTTPS link to a message in a supergroup or channel with a username.