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)