# com.github.insanusmokrassar.TelegramBotAPI.utils.kotlin.String - docs

docs / com.github.insanusmokrassar.TelegramBotAPI.utils / kotlin.String

### Extensions for kotlin.String

(common)

#### bold

`infix fun String.bold(parseMode: ParseMode): String`

(common)

#### boldHTML

`fun String.boldHTML(): String`

(common)

#### boldMarkdown

`fun String.boldMarkdown(): String`

(common)

#### boldMarkdownV2

`fun String.boldMarkdownV2(): String`

(common)

#### cashtag

`infix fun String.cashtag(parseMode: ParseMode): String`

(common)

#### cashTagHtml

`fun String.cashTagHtml(): String`

(common)

#### cashTagMarkdown

`fun String.cashTagMarkdown(): String`

(common)

#### cashTagMarkdownV2

`fun String.cashTagMarkdownV2(): String`

(common)

#### code

`infix fun String.code(parseMode: ParseMode): String`

(common)

#### codeHTML

`fun String.codeHTML(): String`

(common)

#### codeMarkdown

`fun String.codeMarkdown(): String`

(common)

#### codeMarkdownV2

`fun String.codeMarkdownV2(): String`

(common)

#### command

`fun String.command(adapt: String.() -> String): String`
`infix fun String.command(parseMode: ParseMode): String`

(common)

#### commandHTML

`fun String.commandHTML(): String`

(common)

#### commandMarkdown

`fun String.commandMarkdown(): String`

(common)

#### commandMarkdownV2

`fun String.commandMarkdownV2(): String`

(common)

#### email

`infix fun String.email(parseMode: ParseMode): String`

(common)

#### emailHTML

`fun String.emailHTML(): String`

(common)

#### emailMarkdown

`fun String.emailMarkdown(): String`

(common)

#### emailMarkdownV2

`fun String.emailMarkdownV2(): String`

(common)

#### fileExtension

`val String.fileExtension: String`

(common)

#### hashTag

`infix fun String.hashTag(parseMode: ParseMode): String`

(common)

#### hashTagHTML

`fun String.hashTagHTML(): String`

(common)

#### hashTagMarkdown

`fun String.hashTagMarkdown(): String`

(common)

#### hashTagMarkdownV2

`fun String.hashTagMarkdownV2(): String`

(common)

#### italic

`infix fun String.italic(parseMode: ParseMode): String`

(common)

#### italicHTML

`fun String.italicHTML(): String`

(common)

#### italicMarkdown

`fun String.italicMarkdown(): String`

(common)

#### italicMarkdownV2

`fun String.italicMarkdownV2(): String`

(common)

#### linkHTML

`fun String.linkHTML(link: String): String`

(common)

#### linkMarkdown

`fun String.linkMarkdown(link: String): String`

(common)

#### linkMarkdownV2

`fun String.linkMarkdownV2(link: String): String`

(common)

#### mention

`infix fun String.mention(parseMode: ParseMode): String`

(common)

#### mentionHTML

`fun String.mentionHTML(): String`

(common)

#### mentionMarkdown

`fun String.mentionMarkdown(): String`

(common)

#### mentionMarkdownV2

`fun String.mentionMarkdownV2(): String`

(common)

#### phone

`infix fun String.phone(parseMode: ParseMode): String`

(common)

#### phoneHTML

`fun String.phoneHTML(): String`

(common)

#### phoneMarkdown

`fun String.phoneMarkdown(): String`

(common)

#### phoneMarkdownV2

`fun String.phoneMarkdownV2(): String`

(common)

#### pre

`fun String.pre(parseMode: ParseMode, language: String? = null): String`
`infix fun String.pre(parseMode: ParseMode): String`

(common)

#### preHTML

`fun String.preHTML(language: String? = null): String`

(common)

#### preMarkdown

`fun String.preMarkdown(language: String? = null): String`

(common)

#### preMarkdownV2

`fun String.preMarkdownV2(language: String? = null): String`

(common)

#### regular

`infix fun String.regular(parseMode: ParseMode): String`

(common)

#### regularHtml

`fun String.regularHtml(): String`

(common)

#### regularMarkdown

`fun String.regularMarkdown(): String`

(common)

#### regularMarkdownV2

`fun String.regularMarkdownV2(): String`

(common)

#### strikethrough

`infix fun String.strikethrough(parseMode: ParseMode): String`

(common)

#### strikethroughHTML

`fun String.strikethroughHTML(): String`

(common)

#### strikethroughMarkdown

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

`fun String.strikethroughMarkdown(): String`

(common)

#### strikethroughMarkdownV2

`fun String.strikethroughMarkdownV2(): String`

(common)

#### textMentionHTML

`fun String.textMentionHTML(userId: UserId): String`

(common)

#### textMentionMarkdown

`fun String.textMentionMarkdown(userId: UserId): String`

(common)

#### textMentionMarkdownV2

`fun String.textMentionMarkdownV2(userId: UserId): String`

(common)

#### underline

`infix fun String.underline(parseMode: ParseMode): String`

(common)

#### underlineHTML

`fun String.underlineHTML(): String`

(common)

#### underlineMarkdown

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

`fun String.underlineMarkdown(): String`

(common)

#### underlineMarkdownV2

`fun String.underlineMarkdownV2(): String`