# dev.inmo.tgbotapi.extensions.utils.formatting

docs

# Package dev.inmo.tgbotapi.extensions.utils.formatting

## Types

EntitiesBuilder
Link copied to clipboard
class EntitiesBuilder
Content copied to clipboard

This builder can be used to provide building of TextSources List

EntitiesBuilderBody
Link copied to clipboard
typealias EntitiesBuilderBody = EntitiesBuilder .() -> Unit
Content copied to clipboard

## Functions

bold
Link copied to clipboard
inline fun EntitiesBuilder . bold (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . bold (text: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . bold (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Add bold using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.bold

inline fun EntitiesBuilder . bold (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Add bold using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.bold. Will reuse separator config from buildEntities

infix fun String . bold (parseMode: ParseMode ): String
Content copied to clipboard
boldHTML
Link copied to clipboard
fun String . boldHTML (): String
Content copied to clipboard
boldln
Link copied to clipboard
inline fun EntitiesBuilder . boldln (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . boldln (text: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . boldln (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.bold with new line at the end

inline fun EntitiesBuilder . boldln (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.bold with new line at the end. Will reuse separator config from buildEntities

boldMarkdown
Link copied to clipboard
fun String . boldMarkdown (): String
Content copied to clipboard
boldMarkdownV2
Link copied to clipboard
fun String . boldMarkdownV2 (): String
Content copied to clipboard
botCommand
Link copied to clipboard
inline fun EntitiesBuilder . botCommand (command: String ): EntitiesBuilder
Content copied to clipboard

Add botCommand using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.botCommand

botCommandln
Link copied to clipboard
inline fun EntitiesBuilder . botCommandln (command: String ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.botCommand with new line at the end

buildEntities
Link copied to clipboard
fun buildEntities (separator: TextSource ? = null, init: EntitiesBuilderBody ): TextSourcesList
Content copied to clipboard
fun buildEntities (separator: String , init: EntitiesBuilderBody ): List < TextSource >
Content copied to clipboard
cashTag
Link copied to clipboard
infix fun String . cashtag (parseMode: ParseMode ): String
Content copied to clipboard
cashTagHtml
Link copied to clipboard
fun String . cashTagHtml (): String
Content copied to clipboard
cashTagln
Link copied to clipboard
inline fun EntitiesBuilder . cashTagln (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . cashTagln (text: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . cashTagln (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.cashTag with new line at the end

inline fun EntitiesBuilder . cashTagln (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.cashTag with new line at the end. Will reuse separator config from buildEntities

cashTagMarkdown
Link copied to clipboard
fun String . cashTagMarkdown (): String
Content copied to clipboard
cashTagMarkdownV2
Link copied to clipboard
fun String . cashTagMarkdownV2 (): String
Content copied to clipboard
code
Link copied to clipboard
inline fun EntitiesBuilder . code (code: String ): EntitiesBuilder
Content copied to clipboard

Add code using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.code

infix fun String . code (parseMode: ParseMode ): String
Content copied to clipboard
codeHTML
Link copied to clipboard
fun String . codeHTML (): String
Content copied to clipboard
codeln
Link copied to clipboard
inline fun EntitiesBuilder . codeln (code: String ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.code with new line at the end

codeMarkdown
Link copied to clipboard
fun String . codeMarkdown (): String
Content copied to clipboard
codeMarkdownV2
Link copied to clipboard
fun String . codeMarkdownV2 (): String
Content copied to clipboard
command
Link copied to clipboard
infix fun String . command (parseMode: ParseMode ): String
Content copied to clipboard
fun String . command (adapt: String .() -> String ): String
Content copied to clipboard
commandHTML
Link copied to clipboard
fun String . commandHTML (): String
Content copied to clipboard
commandMarkdown
Link copied to clipboard
fun String . commandMarkdown (): String
Content copied to clipboard
commandMarkdownV2
Link copied to clipboard
fun String . commandMarkdownV2 (): String
Content copied to clipboard
createFormattedText
Link copied to clipboard
fun createFormattedText ( entities: TextSourcesList , partLength: Int = textLength.last, mode: ParseMode = defaultParseMode): List < String >
Content copied to clipboard
createHtmlText
Link copied to clipboard
fun createHtmlText (entities: TextSourcesList , partLength: Int = textLength.last): List < String >
Content copied to clipboard
createMarkdownText
Link copied to clipboard
fun createMarkdownText (entities: TextSourcesList , partLength: Int = textLength.last): List < String >
Content copied to clipboard
createMarkdownV2Text
Link copied to clipboard
fun createMarkdownV2Text (entities: TextSourcesList , partLength: Int = textLength.last): List < String >
Content copied to clipboard
email
Link copied to clipboard
inline fun EntitiesBuilder . email (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . email (emailAddress: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . email (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Add email using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.email

inline fun EntitiesBuilder . email (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Add email using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.email. Will reuse separator config from buildEntities

infix fun String . email (parseMode: ParseMode ): String
Content copied to clipboard
emailHTML
Link copied to clipboard
fun String . emailHTML (): String
Content copied to clipboard
emailln
Link copied to clipboard
inline fun EntitiesBuilder . emailln (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . emailln (emailAddress: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . emailln (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.email with new line at the end

inline fun EntitiesBuilder . emailln (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.email with new line at the end. Will reuse separator config from buildEntities

emailMarkdown
Link copied to clipboard
fun String . emailMarkdown (): String
Content copied to clipboard
emailMarkdownV2
Link copied to clipboard
fun String . emailMarkdownV2 (): String
Content copied to clipboard
hashTag
Link copied to clipboard
inline fun EntitiesBuilder . hashtag (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . hashtag (hashtag: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . hashtag (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Add hashtag using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.hashtag

inline fun EntitiesBuilder . hashtag (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Add hashtag using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.hashtag. Will reuse separator config from buildEntities

hashTagHTML
Link copied to clipboard
fun String . hashTagHTML (): String
Content copied to clipboard
hashtagln
Link copied to clipboard
inline fun EntitiesBuilder . hashtagln (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . hashtagln (hashtag: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . hashtagln (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.hashtag with new line at the end

inline fun EntitiesBuilder . hashtagln (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.hashtag with new line at the end. Will reuse separator config from buildEntities

hashTagMarkdown
Link copied to clipboard
fun String . hashTagMarkdown (): String
Content copied to clipboard
hashTagMarkdownV2
Link copied to clipboard
fun String . hashTagMarkdownV2 (): String
Content copied to clipboard
italic
Link copied to clipboard
inline fun EntitiesBuilder . italic (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . italic (text: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . italic (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Add italic using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.italic

inline fun EntitiesBuilder . italic (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Add italic using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.italic. Will reuse separator config from buildEntities

infix fun String . italic (parseMode: ParseMode ): String
Content copied to clipboard
italicHTML
Link copied to clipboard
fun String . italicHTML (): String
Content copied to clipboard
italicln
Link copied to clipboard
inline fun EntitiesBuilder . italicln (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . italicln (text: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . italicln (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.italic with new line at the end

inline fun EntitiesBuilder . italicln (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.italic with new line at the end. Will reuse separator config from buildEntities

italicMarkdown
Link copied to clipboard
fun String . italicMarkdown (): String
Content copied to clipboard
italicMarkdownV2
Link copied to clipboard
fun String . italicMarkdownV2 (): String
Content copied to clipboard
link
Link copied to clipboard
inline fun EntitiesBuilder . link (url: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . link (text: String , url: String ): EntitiesBuilder
Content copied to clipboard

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

infix fun Pair < String , String >. link (parseMode: ParseMode ): String
Content copied to clipboard
linkHTML
Link copied to clipboard
fun String . linkHTML (link: String ): String
Content copied to clipboard
linkln
Link copied to clipboard
inline fun EntitiesBuilder . linkln (url: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . linkln (text: String , url: String ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.link with new line at the end

linkMarkdown
Link copied to clipboard
fun String . linkMarkdown (link: String ): String
Content copied to clipboard
linkMarkdownV2
Link copied to clipboard
fun String . linkMarkdownV2 (link: String ): String
Content copied to clipboard
makeDeepLink
Link copied to clipboard
inline fun makeDeepLink (username: Username , startParameter: String ): String
Content copied to clipboard
makeLink
Link copied to clipboard
inline fun makeLink (username: Username ): String
Content copied to clipboard
makeLinkToMessage
Link copied to clipboard
fun makeLinkToMessage (username: Username , messageId: MessageIdentifier ): String
Content copied to clipboard
fun makeLinkToMessage (chat: UsernameChat , messageId: MessageIdentifier ): String ?
Content copied to clipboard
fun makeLinkToMessage (username: String , messageId: MessageIdentifier ): String
Content copied to clipboard
fun makeLinkToMessage (chat: Chat , messageId: MessageIdentifier ): String ?
Content copied to clipboard

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)

makeTelegramDeepLink
Link copied to clipboard
inline fun makeTelegramDeepLink (username: Username , startParameter: String ): String
Content copied to clipboard
inline fun makeTelegramDeepLink (username: String , startParameter: String ): String
Content copied to clipboard
makeUsernameDeepLinkPrefix
Link copied to clipboard
fun makeUsernameDeepLinkPrefix (username: String ): String
Content copied to clipboard
makeUsernameLink
Link copied to clipboard
fun makeUsernameLink (username: String ): String
Content copied to clipboard
mention
Link copied to clipboard
inline fun EntitiesBuilder . mention (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . mention (whoToMention: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . mention (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . mention (text: String , user: User ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . mention (parts: TextSourcesList , user: User ): EntitiesBuilder
Content copied to clipboard

Add mention using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.mention

inline fun EntitiesBuilder . mention (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Add mention using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.mention. Will reuse separator config from buildEntities

infix fun Pair < String , ChatId >. mention (parseMode: ParseMode ): String
Content copied to clipboard
infix fun String . mention (parseMode: ParseMode ): String
Content copied to clipboard
inline fun EntitiesBuilder . mention (user: User , vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
mentionHTML
Link copied to clipboard
fun String . mentionHTML (): String
Content copied to clipboard
mentionln
Link copied to clipboard
inline fun EntitiesBuilder . mentionln (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . mentionln (whoToMention: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . mentionln (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . mentionln (user: User , vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . mentionln (text: String , user: User ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . mentionln (parts: TextSourcesList , user: User ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.mention with new line at the end

inline fun EntitiesBuilder . mentionln (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.mention with new line at the end. Will reuse separator config from buildEntities

mentionMarkdown
Link copied to clipboard
fun String . mentionMarkdown (): String
Content copied to clipboard
mentionMarkdownV2
Link copied to clipboard
fun String . mentionMarkdownV2 (): String
Content copied to clipboard
phone
Link copied to clipboard
inline fun EntitiesBuilder . phone (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . phone (number: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . phone (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Add phone using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.phone

inline fun EntitiesBuilder . phone (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Add phone using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.phone. Will reuse separator config from buildEntities

infix fun String . phone (parseMode: ParseMode ): String
Content copied to clipboard
phoneHTML
Link copied to clipboard
fun String . phoneHTML (): String
Content copied to clipboard
phoneln
Link copied to clipboard
inline fun EntitiesBuilder . phoneln (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . phoneln (number: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . phoneln (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.phone with new line at the end

inline fun EntitiesBuilder . phoneln (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.phone with new line at the end. Will reuse separator config from buildEntities

phoneMarkdown
Link copied to clipboard
fun String . phoneMarkdown (): String
Content copied to clipboard
phoneMarkdownV2
Link copied to clipboard
fun String . phoneMarkdownV2 (): String
Content copied to clipboard
pre
Link copied to clipboard
infix fun String . pre (parseMode: ParseMode ): String
Content copied to clipboard
fun String . pre (parseMode: ParseMode , language: String ? = null): String
Content copied to clipboard
inline fun EntitiesBuilder . pre (code: String , language: String ?): EntitiesBuilder
Content copied to clipboard

Add pre using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.pre

preHTML
Link copied to clipboard
fun String . preHTML (language: String ? = null): String
Content copied to clipboard
preln
Link copied to clipboard
inline fun EntitiesBuilder . preln (code: String , language: String ?): List < TextSource >
Content copied to clipboard

Version of EntitiesBuilder.pre with new line at the end

preMarkdown
Link copied to clipboard
fun String . preMarkdown (language: String ? = null): String
Content copied to clipboard
preMarkdownV2
Link copied to clipboard
fun String . preMarkdownV2 (language: String ? = null): String
Content copied to clipboard
regular
Link copied to clipboard
inline fun EntitiesBuilder . regular (text: String ): EntitiesBuilder
Content copied to clipboard

Will add simple dev.inmo.tgbotapi.types.MessageEntity.textsources.regular

infix fun String . regular (parseMode: ParseMode ): String
Content copied to clipboard
regularHtml
Link copied to clipboard
fun String . regularHtml (): String
Content copied to clipboard
regularln
Link copied to clipboard
inline fun EntitiesBuilder . regularln (text: String ): EntitiesBuilder
Content copied to clipboard

Will add simple dev.inmo.tgbotapi.types.MessageEntity.textsources.regular and "\n" at the end

regularMarkdown
Link copied to clipboard
fun String . regularMarkdown (): String
Content copied to clipboard
regularMarkdownV2
Link copied to clipboard
fun String . regularMarkdownV2 (): String
Content copied to clipboard
spoiler
Link copied to clipboard
inline fun EntitiesBuilder . spoiler (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . spoiler (text: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . spoiler (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Add spoiler using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.spoiler

inline fun EntitiesBuilder . spoiler (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Add spoiler using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.spoiler. Will reuse separator config from buildEntities

spoilerln
Link copied to clipboard
inline fun EntitiesBuilder . spoilerln (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . spoilerln (text: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . spoilerln (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.spoiler with new line at the end

inline fun EntitiesBuilder . spoilerln (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.spoiler with new line at the end. Will reuse separator config from buildEntities

strikethrough
Link copied to clipboard
inline fun EntitiesBuilder . strikethrough (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . strikethrough (text: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . strikethrough (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Add strikethrough using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.strikethrough

inline fun EntitiesBuilder . strikethrough (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Add strikethrough using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.strikethrough. Will reuse separator config from buildEntities

infix fun String . strikethrough (parseMode: ParseMode ): String
Content copied to clipboard
strikethroughHTML
Link copied to clipboard
fun String . strikethroughHTML (): String
Content copied to clipboard
strikethroughln
Link copied to clipboard
inline fun EntitiesBuilder . strikethroughln (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . strikethroughln (text: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . strikethroughln (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.strikethrough with new line at the end

inline fun EntitiesBuilder . strikethroughln (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.strikethrough with new line at the end. Will reuse separator config from buildEntities

strikethroughMarkdown
Link copied to clipboard
fun String . strikethroughMarkdown (): String
Content copied to clipboard

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

strikethroughMarkdownV2
Link copied to clipboard
fun String . strikethroughMarkdownV2 (): String
Content copied to clipboard
textMentionHTML
Link copied to clipboard
fun String . textMentionHTML (userId: UserId ): String
Content copied to clipboard
textMentionMarkdown
Link copied to clipboard
fun String . textMentionMarkdown (userId: UserId ): String
Content copied to clipboard
textMentionMarkdownV2
Link copied to clipboard
fun String . textMentionMarkdownV2 (userId: UserId ): String
Content copied to clipboard
toHtmlCaptions
Link copied to clipboard
fun TextSourcesList . toHtmlCaptions (): List < String >
Content copied to clipboard
toHtmlExplanations
Link copied to clipboard
fun TextSourcesList . toHtmlExplanations (): List < String >
Content copied to clipboard
toHtmlTexts
Link copied to clipboard
fun TextContent . toHtmlTexts (): List < String >
Content copied to clipboard
fun TextSourcesList . toHtmlTexts (): List < String >
Content copied to clipboard
toMarkdownCaptions
Link copied to clipboard
fun TextSourcesList . toMarkdownCaptions (): List < String >
Content copied to clipboard
toMarkdownExplanations
Link copied to clipboard
fun TextSourcesList . toMarkdownExplanations (): List < String >
Content copied to clipboard
toMarkdownTexts
Link copied to clipboard
fun TextContent . toMarkdownTexts (): List < String >
Content copied to clipboard
fun TextSourcesList . toMarkdownTexts (): List < String >
Content copied to clipboard
toMarkdownV2Captions
Link copied to clipboard
fun TextSourcesList . toMarkdownV2Captions (): List < String >
Content copied to clipboard
toMarkdownV2Explanations
Link copied to clipboard
fun TextSourcesList . toMarkdownV2Explanations (): List < String >
Content copied to clipboard
toMarkdownV2Texts
Link copied to clipboard
fun TextContent . toMarkdownV2Texts (): List < String >
Content copied to clipboard
fun TextSourcesList . toMarkdownV2Texts (): List < String >
Content copied to clipboard
underline
Link copied to clipboard
inline fun EntitiesBuilder . underline (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . underline (text: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . underline (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Add underline using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.underline

inline fun EntitiesBuilder . underline (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Add underline using EntitiesBuilder.add with dev.inmo.tgbotapi.types.MessageEntity.textsources.underline. Will reuse separator config from buildEntities

infix fun String . underline (parseMode: ParseMode ): String
Content copied to clipboard
underlineHTML
Link copied to clipboard
fun String . underlineHTML (): String
Content copied to clipboard
underlineln
Link copied to clipboard
inline fun EntitiesBuilder . underlineln (vararg parts: TextSource ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . underlineln (text: String ): EntitiesBuilder
Content copied to clipboard
inline fun EntitiesBuilder . underlineln (parts: TextSourcesList ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.underline with new line at the end

inline fun EntitiesBuilder . underlineln (noinline init: EntitiesBuilderBody ): EntitiesBuilder
Content copied to clipboard

Version of EntitiesBuilder.underline with new line at the end. Will reuse separator config from buildEntities

underlineMarkdown
Link copied to clipboard
fun String . underlineMarkdown (): String
Content copied to clipboard

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

underlineMarkdownV2
Link copied to clipboard
fun String . underlineMarkdownV2 (): String
Content copied to clipboard

## Properties

deepLinkPrefix
Link copied to clipboard
val Username . deepLinkPrefix : String
Content copied to clipboard
htmlBoldControl
Link copied to clipboard
const val htmlBoldControl : String
Content copied to clipboard
htmlCodeControl
Link copied to clipboard
const val htmlCodeControl : String
Content copied to clipboard
htmlItalicControl
Link copied to clipboard
const val htmlItalicControl : String
Content copied to clipboard
htmlPreControl
Link copied to clipboard
const val htmlPreControl : String
Content copied to clipboard
htmlStrikethroughControl
Link copied to clipboard
const val htmlStrikethroughControl : String
Content copied to clipboard
htmlUnderlineControl
Link copied to clipboard
const val htmlUnderlineControl : String
Content copied to clipboard
link
Link copied to clipboard
val Username . link : String
Content copied to clipboard
val Message . link : String ?
Content copied to clipboard
val Chat . link : String ?
Content 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

markdownBoldControl
Link copied to clipboard
const val markdownBoldControl : String
Content copied to clipboard
markdownCodeControl
Link copied to clipboard
const val markdownCodeControl : String
Content copied to clipboard
markdownItalicControl
Link copied to clipboard
const val markdownItalicControl : String
Content copied to clipboard
markdownPreControl
Link copied to clipboard
const val markdownPreControl : String
Content copied to clipboard
markdownV2ItalicEndControl
Link copied to clipboard
const val markdownV2ItalicEndControl : String
Content copied to clipboard
markdownV2ItalicUnderlineDelimiter
Link copied to clipboard
const val markdownV2ItalicUnderlineDelimiter : String
Content copied to clipboard
markdownV2StrikethroughControl
Link copied to clipboard
const val markdownV2StrikethroughControl : String
Content copied to clipboard
markdownV2UnderlineControl
Link copied to clipboard
const val markdownV2UnderlineControl : String
Content copied to clipboard
markdownV2UnderlineEndControl
Link copied to clipboard
const val markdownV2UnderlineEndControl : String
Content copied to clipboard
newLine
Link copied to clipboard
val newLine : RegularTextSource
Content copied to clipboard
stickerSetLink
Link copied to clipboard
val StickerSetName . stickerSetLink : TextLinkTextSource
Content copied to clipboard