commandParams

fun Flow<CommonMessage<TextContent>>.commandParams(commandRegex: Regex): Flow<Pair<CommonMessage<TextContent>, Pair<BotCommandTextSource, Array<TextSource>>>>

Use flattenCommandsWithParams and filter out the commands which do not matches to commandRegex