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 1fbc3edeb0..1b28ae2f9f 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 @@ -40,24 +40,10 @@ fun List.parseCommandsWithParams( /** * Parse commands and their args. Logic will find command, get all subsequent data as args until new command */ -fun TextedInput.parseCommandsWithParams( - argsSeparator: Regex = defaultArgsSeparator -) = textSources.parseCommandsWithParams(argsSeparator) - -/** - * Parse commands and their args. Logic will find command, get all subsequent data as args until new command - */ -fun TextedOutput.parseCommandsWithParams( +fun TextedWithTextSources.parseCommandsWithParams( argsSeparator: Regex = defaultArgsSeparator ) = textSources ?.parseCommandsWithParams(argsSeparator) ?: emptyMap() -/** - * Parse commands and their args. Logic will find command, get all subsequent data as args until new command - */ -fun CaptionedInput.parseCommandsWithParams( - argsSeparator: Regex = defaultArgsSeparator -) = textSources.parseCommandsWithParams(argsSeparator) - /** * Parse commands and their args. Logic will find command, get all subsequent data as args until new command */