diff --git a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitCommandsMessages.kt b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitCommandsMessages.kt index ce22f42dac..df09bdd4be 100644 --- a/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitCommandsMessages.kt +++ b/tgbotapi.behaviour_builder/src/commonMain/kotlin/dev/inmo/tgbotapi/extensions/behaviour_builder/expectations/WaitCommandsMessages.kt @@ -83,14 +83,14 @@ fun Flow>.requireCommandsWithoutParams() = filter { } /** - * Map the commands with their arguments and source messages + * Uses [parseCommandsWithArgsSources] on incoming text sources and map them with [CommonMessage] */ fun Flow>.commandsWithParams(): Flow, List>>>> = mapNotNull { it to it.content.textSources.parseCommandsWithArgsSources().toList() } /** - * Map the commands with their arguments and source messages + * Uses [parseCommandsWithArgs] on incoming text sources and map them with [CommonMessage] */ fun Flow>.commandsWithArgs( argsSeparator: Regex = TelegramBotCommandsDefaults.defaultArgsSeparatorRegex @@ -103,14 +103,14 @@ fun Flow>.commandsWithArgs( } /** - * Map the commands with their arguments and source messages + * Uses [parseCommandsWithArgs] on incoming text sources and map them with [CommonMessage] */ fun Flow>.commandsWithArgs( argsSeparator: String ): Flow, List>>>> = commandsWithArgs(Regex(argsSeparator)) /** - * Map the commands with their arguments and source messages + * Uses [parseCommandsWithNamedArgs] on incoming text sources and map them with [CommonMessage] */ fun Flow>.commandsWithNamedArgs( argsSeparator: Regex = TelegramBotCommandsDefaults.defaultArgsSeparatorRegex, @@ -124,7 +124,7 @@ fun Flow>.commandsWithNamedArgs( } /** - * Map the commands with their arguments and source messages + * Uses [parseCommandsWithNamedArgs] on incoming text sources and map them with [CommonMessage] */ fun Flow>.commandsWithNamedArgs( argsSeparator: String,