From 1ddd138ff7eb4d731d4c1fa6e603c2c5b307df14 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 24 Mar 2021 13:44:27 +0600 Subject: [PATCH] update kdocs for new function --- .../utils/extensions/TextCaptionBotCommandsParser.kt | 6 ++++++ 1 file changed, 6 insertions(+) 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 4ad76dddac..1eba49b1f4 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 @@ -54,10 +54,16 @@ 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 + */ 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)