Package-level declarations

Functions

Link copied to clipboard
infix fun String.bold(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.cashtag(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.code(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.command(parseMode: ParseMode): String
fun String.command(adapt: String.() -> String): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun createFormattedText(entities: TextSourcesList, partLength: Int = textLength.last, mode: ParseMode = defaultParseMode): List<String>
Link copied to clipboard
fun createHtmlText(entities: TextSourcesList, partLength: Int = textLength.last): List<String>
Link copied to clipboard
fun createMarkdownText(entities: TextSourcesList, partLength: Int = textLength.last): List<String>
Link copied to clipboard
fun createMarkdownV2Text(entities: TextSourcesList, partLength: Int = textLength.last): List<String>
Link copied to clipboard
infix fun String.email(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.hashTag(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.italic(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun Username.link(threadId: MessageThreadId?): String
infix fun Pair<String, String>.link(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun makeChatLink(identifier: Identifier, threadId: MessageThreadId? = null): String
Link copied to clipboard
inline fun makeDeepLink(username: Username, startParameter: String): String
Link copied to clipboard
inline fun makeLink(username: Username, threadId: MessageThreadId? = null): String
Link copied to clipboard
fun makeLinkToMessage(username: Username, messageId: MessageId, threadId: MessageThreadId? = null): String
fun makeLinkToMessage(chatId: Identifier, messageId: MessageId, threadId: MessageThreadId? = null): String
fun makeLinkToMessage(username: String, messageId: MessageId, threadId: MessageThreadId? = null): String

fun makeLinkToMessage(chat: Chat, messageId: MessageId): String?

Link which can be used as by any user to get access to Message. Returns null in case when there are no known way to build link (for PrivateChats, for example)

Link copied to clipboard
inline fun makeTelegramDeepLink(username: Username, startParameter: String): String
inline fun makeTelegramDeepLink(username: String, startParameter: String): String
Link copied to clipboard
inline fun makeTelegramStartattach(username: Username, data: String? = null): String
inline fun makeTelegramStartattach(username: String, data: String? = null): String
Link copied to clipboard
fun makeUserLink(userId: UserId): String
Link copied to clipboard
Link copied to clipboard
fun makeUsernameLink(username: String, threadId: MessageThreadId? = null): String
Link copied to clipboard
fun makeUsernameStartattachLink(username: String, data: String? = null): String
Link copied to clipboard
infix fun Pair<String, UserId>.mention(parseMode: ParseMode): String
infix fun String.mention(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.phone(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.pre(parseMode: ParseMode): String
fun String.pre(parseMode: ParseMode, language: String? = null): String
Link copied to clipboard
fun String.preHTML(language: String? = null): String
Link copied to clipboard
fun String.preMarkdown(language: String? = null): String
Link copied to clipboard
fun String.preMarkdownV2(language: String? = null): String
Link copied to clipboard
infix fun String.regular(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.strikethrough(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard

Crutch for support of strikethrough in default markdown. Simply add modifier, but it will not look like correct

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
infix fun String.underline(parseMode: ParseMode): String
Link copied to clipboard
Link copied to clipboard

Crutch for support of underline in default markdown. Simply add modifier, but it will not look like correct

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard