link

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


Deprecated

Replaced in core module

Replace with

import dev.inmo.tgbotapi.utils.link
link(text, url)

Add link using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.link


Deprecated

Replaced in core module

Replace with

import dev.inmo.tgbotapi.utils.link
link(url)

Add link using EntitiesBuilder.add with dev.inmo.tgbotapi.types.message.textsources.link


Deprecated

Deprecated due to the conflicts in name

Replace with

import dev.inmo.tgbotapi.extensions.utils.formatting.usernameLink
this.usernameLink

Deprecated

Deprecated due to the conflicts in name

Replace with

import dev.inmo.tgbotapi.extensions.utils.formatting.chatLink
this.chatLink

Deprecated

Deprecated due to the conflicts in name

Replace with

import dev.inmo.tgbotapi.extensions.utils.formatting.messageLink
this.messageLink

See also


Deprecated

Deprecated due to the conflicts in name

Replace with

import dev.inmo.tgbotapi.extensions.utils.formatting.chatLink
this.chatLink

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