From 596176ee937d4370bdd3c46c7ba676f714e3ccd5 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Sat, 1 Jan 2022 20:20:48 +0600 Subject: [PATCH] simple rewrite of spoiler markdown --- .../kotlin/dev/inmo/tgbotapi/utils/internal/StringFormatting.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/internal/StringFormatting.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/internal/StringFormatting.kt index 109caa2ea7..13289fe1df 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/internal/StringFormatting.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/internal/StringFormatting.kt @@ -49,7 +49,7 @@ internal fun String.boldMarkdown(): String = markdownDefault(markdownBoldControl internal fun String.italicMarkdown(): String = markdownDefault(markdownItalicControl) -internal fun String.spoilerMarkdown(): String = markdownDefault(markdownSpoilerControl) +internal fun String.spoilerMarkdown(): String = regularMarkdown() /** * Crutch for support of strikethrough in default markdown. Simply add modifier, but it will not look like correct