link

inline fun Username.link(threadId: MessageThreadId?): String
infix fun Pair<String, String>.link(parseMode: ParseMode): String


See also


Link which can be used as by any user to get access to Chat. Returns null in case when there are no known way to build link