From 2b938903b67629218258a6e0d8e7b39efe2beb08 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Wed, 25 Oct 2023 14:55:46 +0600 Subject: [PATCH] update kdocs --- .../expectations/WaitCommandsMessages.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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,