docs / com.github.insanusmokrassar.TelegramBotAPI.extensions.utils.formatting

Package com.github.insanusmokrassar.TelegramBotAPI.extensions.utils.formatting

Extensions for External Classes

(common)

kotlin.collections.List

(common)

kotlin.Pair

(common)

kotlin.String

Properties

(common)

htmlBoldControl

const val htmlBoldControl: String
(common)

htmlCodeControl

const val htmlCodeControl: String
(common)

htmlItalicControl

const val htmlItalicControl: String
(common)

htmlPreControl

const val htmlPreControl: String
(common)

htmlStrikethroughControl

const val htmlStrikethroughControl: String
(common)

htmlUnderlineControl

const val htmlUnderlineControl: String
(common)

markdownBoldControl

const val markdownBoldControl: String
(common)

markdownCodeControl

const val markdownCodeControl: String
(common)

markdownItalicControl

const val markdownItalicControl: String
(common)

markdownPreControl

const val markdownPreControl: String
(common)

markdownV2ItalicEndControl

const val markdownV2ItalicEndControl: String
(common)

markdownV2ItalicUnderlineDelimiter

const val markdownV2ItalicUnderlineDelimiter: String
(common)

markdownV2StrikethroughControl

const val markdownV2StrikethroughControl: String
(common)

markdownV2UnderlineControl

const val markdownV2UnderlineControl: String
(common)

markdownV2UnderlineEndControl

const val markdownV2UnderlineEndControl: String

Functions

(common)

createFormattedText

fun createFormattedText(entities: FullTextSourcesList, partLength: Int = textLength.last, mode: ParseMode = MarkdownParseMode): List<String>
(common)

createHtmlText

fun createHtmlText(entities: FullTextSourcesList, partLength: Int = textLength.last): List<String>
(common)

createMarkdownText

fun createMarkdownText(entities: FullTextSourcesList, partLength: Int = textLength.last): List<String>
(common)

createMarkdownV2Text

fun createMarkdownV2Text(entities: FullTextSourcesList, partLength: Int = textLength.last): List<String>
(common)

makeLinkToAddStickerSet

Create a link for adding of sticker set with name stickerSetName. Was added thanks to user Djaler and based on https://github.com/Djaler/evil-bot/blob/master/src/main/kotlin/com/github/djaler/evilbot/utils/StickerUtils.kt#L6-L8

fun makeLinkToAddStickerSet(stickerSetName: StickerSetName, parseMode: ParseMode): String
(common)

makeLinkToAddStickerSetInHtml

fun makeLinkToAddStickerSetInHtml(stickerSetName: StickerSetName): String
(common)

makeLinkToAddStickerSetInMarkdown

fun makeLinkToAddStickerSetInMarkdown(stickerSetName: StickerSetName): String
(common)

makeLinkToAddStickerSetInMarkdownV2

fun makeLinkToAddStickerSetInMarkdownV2(stickerSetName: StickerSetName): String
(common)

makeLinkToMessage

fun makeLinkToMessage(username: String, messageId: MessageIdentifier): String
fun makeLinkToMessage(chat: ExtendedChat, messageId: MessageIdentifier): String?
(common)

toHtmlCaptions

fun CaptionedInput.toHtmlCaptions(): List<String>
(common)

toHtmlExplanations

fun ExplainedInput.toHtmlExplanations(): List<String>
(common)

toHtmlTexts

fun TextContent.toHtmlTexts(): List<String>
(common)

toMarkdownCaptions

fun CaptionedInput.toMarkdownCaptions(): List<String>
(common)

toMarkdownExplanations

fun ExplainedInput.toMarkdownExplanations(): List<String>
(common)

toMarkdownTexts

fun TextContent.toMarkdownTexts(): List<String>
(common)

toMarkdownV2Captions

fun CaptionedInput.toMarkdownV2Captions(): List<String>
(common)

toMarkdownV2Explanations

fun ExplainedInput.toMarkdownV2Explanations(): List<String>
(common)

toMarkdownV2Texts

fun TextContent.toMarkdownV2Texts(): List<String>