From 112c86c9da0e4d162541b03183cfdf14c01d8939 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 24 Mar 2021 13:56:51 +0600 Subject: [PATCH] remove caption based messages extension for parsing of commands --- .../utils/extensions/TextCaptionBotCommandsParser.kt | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/extensions/TextCaptionBotCommandsParser.kt b/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/extensions/TextCaptionBotCommandsParser.kt index 1eba49b1f4..86a63efb23 100644 --- a/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/extensions/TextCaptionBotCommandsParser.kt +++ b/tgbotapi.extensions.utils/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/utils/extensions/TextCaptionBotCommandsParser.kt @@ -60,10 +60,3 @@ fun CaptionedInput.parseCommandsWithParams( fun ContentMessage.parseCommandsWithParams( argsSeparator: Regex = defaultArgsSeparator ) = content.parseCommandsWithParams(argsSeparator) - -/** - * Parse commands and their args. Logic will find command, get all subsequent data as args until new command - */ -fun ContentMessage.parseCommandsWithParams( - argsSeparator: Regex = defaultArgsSeparator -) where T : CaptionedInput, T : MessageContent = content.parseCommandsWithParams(argsSeparator)